alternating pictures

S

slinky

I was a site that has alternating pictures on a timer of about 2
seconds. Does anyone know how in HTML I can accomplish this? I looked
at the code and all I coulf find was:
<img src="http://www.lancer.com/photos/newphotos/c.gif" alt="Lancer
Logo" width="105" height="139" border="0"></span><span
style="background-color:
#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
J

Jukka K. Korpela

Scripsit slinky:
I was a site that has alternating pictures on a timer of about 2
seconds.

Nasty, isn't it?
Does anyone know how in HTML I can accomplish this?

Thank &Deity;, there is no way in HTML to do such things.
I looked
at the code and all I coulf find was:
<img src="http://www.lancer.com/photos/newphotos/c.gif" alt="Lancer
Logo" width="105" height="139" border="0"></span><span
style="background-color:
#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

So you saw a fragment of relatively clueless markup. Of course the
alternating effect has been created with tools external to CSS, probably
some piece of crappy JavaScript. Thanks for reminding me why disabling
JavaScript is useful.
 
B

Ben C

Scripsit slinky:


Nasty, isn't it?


Thank &Deity;, there is no way in HTML to do such things.


So you saw a fragment of relatively clueless markup. Of course the
alternating effect has been created with tools external to CSS, probably
some piece of crappy JavaScript. Thanks for reminding me why disabling
JavaScript is useful.

It could also have been an animated gif.
 
A

Andy Dingley

I was a site that has alternating pictures on a timer of about 2 seconds.

A URL would have been helpful.
Does anyone know how in HTML I can accomplish this?

You can't, at least not with plain HTML / CSS alone. You will need
something else as well, although this could be very simple.

If the image is "GIF friendly" (i.e. just a bit of graphic design
flummery, not a photograph) then you could do this easily with an
animated GIF. If it's only two images and a snap change (i.e. no slow
morphing between them) then this is still quite a compact way to send
it.

If you want to use two reasonable quality photographs, i.e. using JPG
images, then use JavaScript. It's a really simple example, I'm sure
you can web search a suitable fragment. When you do this, make sure
you code it in such a way that people without JavaScript see at least
one image, or maybe both of them side-by-side.


There are other techniques, but these two are the simple and sensible
ones.
 
A

Animesh K

Jukka said:
Scripsit slinky:
So you saw a fragment of relatively clueless markup. Of course the
alternating effect has been created with tools external to CSS, probably
some piece of crappy JavaScript. Thanks for reminding me why disabling
JavaScript is useful.

Oh it's just an animated gif. And you can disable that too, in firefox
or IE :)
 
D

Don And Sis

Here is the code. each picture is on a seperate page with the code.

his part is your timer

<META HTTP-EQUIV=
"Refresh"Content="15;URL=http://url of the next page
here"><link rel="next"
href="http://url of the next pic or slide here">

There is no javasript here.


<html>
<title>Slide Show</title>
<p>
<head>
<META HTTP-EQUIV=
"Refresh"Content="15;URL=http://url of the next page
here"><link rel="next"
href="http://url of the next pic or slide here"> </head>
<p>
<body bgcolor="000000">
<p>
<br>
<center>
<table bgcolor="darkred" border="4"
width="450" height="325"> <TR
bgcolor="black">
<TD align="center">
<img
src="http://url of the pic or slide here" height="325"
width="450">
</tr></td>
</table>
</center>
<p>
</body>
</html>

Don
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top