[thelist] Slide show with html text
Ron Dorman
rwd at csi1st.net
Wed Oct 15 12:53:36 CDT 2003
Jono Young wrote:
>OK, so this type of coding could not be applied to the example I provided
><http://www.snyderhomesusa.com/>, in order to have JUST the images and text
>below the images refresh, leaving the rest of the pages content alone?
>
Try something like this:
<script language="JavaScript" type="text/JavaScript">
var image1=new Image(); image1.src="img/slide1.jpg";
var image2=new Image(); image2.src="img/slide2.jpg";
var image3=new Image(); image3.src="img/slide3.jpg";
var image4=new Image(); image4.src="img/slide4.jpg";
var step=1;
function slideshow() {
if (!document.images) {
return;
}
document.images.slide.src=eval("image"+step+".src");
if (step<4) {
step++;
} else {
step=1;
}
setTimeout("slideit()",9000)
}
slideshow();
</script>
<body onload="slideshow();">
Haven't tested it myself, but is pretty straight forward and should work.
Ron D.
More information about the thelist
mailing list