M
mikeoley
Why would this script below work on an html page:
http://www.eg-designdev.com/aircylinders/test.htm
But not a java page such as this:
"http://www.eg-designdev.com/aircylinders/index3.jsp"
Or does anybody have a simple slide show rotation script they could
refer me to...thanks.
<HTML><HEAD>
<TITLE>Slideshow Tutorial</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -
var timer = null
var counter =1
function slideshow() {
timer=setTimeout("slideshow()", 2000);
counter++;
if (counter >= 6)
counter = 2;
document.pictures.src = pic[counter].src;
}
function endtimer() {
clearTimeout(timer);
document.pictures.src = pic[1].src;
counter = 1;
}
// - End of JavaScript - -->
</SCRIPT>
</HEAD>
<BODY BACKGROUND="FFFFFF">
<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -
if (document.images) {
pic = new Array()
pic[1] = new Image(108, 108);
pic[1].src = "pic1.gif";
pic[2] = new Image(108, 108);
pic[2].src = "pic2.gif";
pic[3] = new Image(108, 108);
pic[3].src = "pic3.gif";
pic[4] = new Image(108, 108);
pic[4].src = "pic4.gif";
pic[5] = new Image(108, 108);
pic[5].src = "pic5.gif";
}
// - End of JavaScript - -->
</SCRIPT>
<CENTER>
<TABLE BORDER=0 CELLSPACING="0" CELLPADDING="0">
<TR></TR>
<TR>
<TD><IMG SRC="images/main-nrseries.gif" WIDTH="550" HEIGHT="245"
NAME="pictures"></TD>
</body>
</html>
http://www.eg-designdev.com/aircylinders/test.htm
But not a java page such as this:
"http://www.eg-designdev.com/aircylinders/index3.jsp"
Or does anybody have a simple slide show rotation script they could
refer me to...thanks.
<HTML><HEAD>
<TITLE>Slideshow Tutorial</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -
var timer = null
var counter =1
function slideshow() {
timer=setTimeout("slideshow()", 2000);
counter++;
if (counter >= 6)
counter = 2;
document.pictures.src = pic[counter].src;
}
function endtimer() {
clearTimeout(timer);
document.pictures.src = pic[1].src;
counter = 1;
}
// - End of JavaScript - -->
</SCRIPT>
</HEAD>
<BODY BACKGROUND="FFFFFF">
<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -
if (document.images) {
pic = new Array()
pic[1] = new Image(108, 108);
pic[1].src = "pic1.gif";
pic[2] = new Image(108, 108);
pic[2].src = "pic2.gif";
pic[3] = new Image(108, 108);
pic[3].src = "pic3.gif";
pic[4] = new Image(108, 108);
pic[4].src = "pic4.gif";
pic[5] = new Image(108, 108);
pic[5].src = "pic5.gif";
}
// - End of JavaScript - -->
</SCRIPT>
<CENTER>
<TABLE BORDER=0 CELLSPACING="0" CELLPADDING="0">
<TR></TR>
<TR>
<TD><IMG SRC="images/main-nrseries.gif" WIDTH="550" HEIGHT="245"
NAME="pictures"></TD>
</body>
</html>