Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.