Guest Posted September 15, 2008 Share Posted September 15, 2008 At the top of my homepage, I have a banner. Every now and again I need to edit my public_html/includes/modules/new_products.php file, and change the name of the jpg it is pointing to. The section of code I change is as follows; <IFRAME marginWidth=0 marginHeight=0 src="/images/rideons.jpg" frameBorder=0 width=516 scrolling=no height=172 allowTransparency> </IFRAME> In the above example the banner is called rideons.jpg Does anyone know a way that instead of calling ONE jpg file, I could have it randomly display from a group of banners? So that I could have 5 banenrs on the site called banner1.jpg, banner2.jpg etc and it loads one of them at random? This would obviously help my site look like it is updated more often, and mean I dont need to edit new_products.php any more. Many thanks if anyone is able to help Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.