March 23, 200917 yr Hi Everyone I am putting a website together for someone and would like some advice when it comes to adding rotating images to the header. The site is 5 pages so we will call them page1.html, page2.html etc for this example. In the header i would like 5 images to fade in and fade out in sequence. I was thinking of creating this effect in flash and then embedding the SWF file into the header. The problem with this is that when someone is on page1.html, the images will rotate, but say you clicked page2.html when the sequence had got image 3, the rotation would start back at image 1 again. I have built flash based sites before which would obviously eliminate this problem, but i do not want a flash based site. what would i need to do to have a image rotation system in place so that no matter what page was clicked, (page1.html, page2.html etc), the images would still rotate in sequence and not jump back to the start? Thanks for any help
March 23, 200917 yr I'd guess javascript, but im no good at it myself xD Or you could have a php image randomizer than changes the image every reload. Or xD, you could use them both, so the php changer randomises the first loaded image, and then the javascriot flips between the rest. Sorta clever Xd
March 23, 200917 yr use php and update a session whenever it changes, grab the session number on the next page and you will know where you were up to.
Create an account or sign in to comment