scarfman: (me)
scarfman ([personal profile] scarfman) wrote2012-01-11 09:43 am
Entry tags:

Groupmind

Is there a way to continuously swap two or more images in the same place on a webpage with HTML code, instead of animating the image?

pedanther: (Default)

[personal profile] pedanther 2012-01-11 03:55 pm (UTC)(link)
I could do it with javascript, but I don't know offhand of a way to do it with plain HTML.

[identity profile] kail-panille.livejournal.com 2012-01-11 05:32 pm (UTC)(link)
For non-Javascript animation effects you need CSS3. That means less support, especially in older browsers, but it works great when it works. Here's an example doing exactly what you describe (http://css3.bradshawenterprises.com/cfimg3/), or for more background you can read the whole thing (http://css3.bradshawenterprises.com/).

[identity profile] kail-panille.livejournal.com 2012-01-11 06:08 pm (UTC)(link)
Sort of. The page that has the images cross-fading on a timer only has pieces of the code. It assumes you're starting from this earlier example (http://css3.bradshawenterprises.com/cfimg1/) and just shows what needs to be changed.

[identity profile] antiwesley.livejournal.com 2012-01-12 02:21 am (UTC)(link)
There are ways to randomise it as well, but just assign a two digit randomization to it. Plain HTML as well.