Jump to content

Image rotation with Sliced Images


koshia

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/51199-image-rotation-with-sliced-images/
Share on other sites

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?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.