Hello,
I am designing a web page, I want to make to images alternately appear!
i.e. I want one image to appear for 0,5 seconds and then a second one to appear for 0.5 seconds !
Is there an easy way to acheive this effect using HTML?
OR would I need a plug in?
If i do need a plug in, can someone please recomend one
But simple HTML would be better, as I am trying to learn it :)
THANKS IN ADVANCE
the_pm
08-26-2005, 02:12 PM
This cannot be done in HTML. HTML is strictly a static platform. It cannot generate new states unless you were to refresh the entire page (or a frame within a page) every .5 seconds, and let me tell you, that would get annoying FAST!
You could use JavaScript to rotate images. This isn't terribly difficult to do. Do a search for a script that can do it. If you can't find anything, I'll write something up for you.
Nowadays, I think you'll find a lot of developers doing this sort of thing in Flash, which makes a lot of sense. It's sort of why Flash is around in the first place, and just like with JavaScript, you can always provide a static version that will show up in the place of the .swf file should Flash not be supported in a particular browser.
Dan L
08-26-2005, 02:12 PM
Edit: Looks like Paul beat me :)
dollar
08-26-2005, 02:12 PM
There is no way I know of to do this with simple HTML off the top of my head. It could be done with javascript and/or PHP.
mwalker
08-27-2005, 06:58 PM
You could also make a animated gif to do this.
After searching google, here's a link to a relatively simple JavaScript:
http://www.quirksmode.org/js/rotate.html
Everything is explained on the site, making it great for learning.
bulldog1256
08-28-2005, 12:23 AM
do it with a frame and set the metatag to refresh the framed page however long you want after the picture comes up. All simple html
the_pm
08-28-2005, 11:30 AM
Originally posted by bulldog1256
do it with a frame and set the metatag to refresh the framed page however long you want after the picture comes up. All simple html That, in-and-of itself would simply reload the same picture over and over. You'd still need to place your pictures into a JavaScript array, or you'd need to create a separate HTML page for every picture and use the meta redirect with a timeout pointing to each one within the loop. The refrsh meta won't do the trick here, I don't believe. Either way, this is terribly inefficient...