koshia Posted May 13, 2007 Share Posted May 13, 2007 I am new to the php world and would not consider myself to know much about this field; however, I have ran into a stump. I recently created a few banners for my website. The only problem is I want them to rotate, but rotate while they are sliced. The banners are fairly large and for that reason they are sliced to have a better performance on the web page. Does anyone know of how I can be able to do this or a known script that I may be able to grab? Thank you in advance for your help. Quote Link to comment https://forums.phpfreaks.com/topic/51199-image-rotation-with-sliced-images/ Share on other sites More sharing options...
koshia Posted May 13, 2007 Author Share Posted May 13, 2007 I still haven't found any solution for this; however, I found an alternative but no one seems to have the code for it. The suggested alternative is to create mutiple html files with the table of images already laid out and random the html file instead of the images. Could someone me with this please? Quote Link to comment https://forums.phpfreaks.com/topic/51199-image-rotation-with-sliced-images/#findComment-252163 Share on other sites More sharing options...
cmgmyr Posted May 13, 2007 Share Posted May 13, 2007 what you could do is have an "ad" directory on your server. In this you would have 1.html, 2.html, 3.html ...and so on. Each of these files would have just the image html for each banner. Then all you have to do is find a random number between 1 and 3 then include that file. Quote Link to comment https://forums.phpfreaks.com/topic/51199-image-rotation-with-sliced-images/#findComment-252167 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.