1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document
Rotating Picture 1) Insert the following codes under the <head> tag <SCRIPT LANGUAGE="JavaScript"> <!-- function move1(whichlayer){ tlayer=eval(whichlayer) if (tlayer.left>0&&tlayer.left<=5){ tlayer.left=0 setTimeout("move1(tlayer)",pausebetweenimages) setTimeout("move2(document.main.document.second)",pausebetweenimages) return } if (tlayer.left>=tlayer.document.width*-1){ tlayer.left-=5 setTimeout("move1(tlayer)",100) } else{ tlayer.left=scrollerwidth+5 tlayer.document.write(slideimages[i]) tlayer.document.close() if (i==slideimages.length-1) i=0 else i++ } } function move2(whichlayer){ tlayer2=eval(whichlayer) if (tlayer2.left>0&&tlayer2.left<=5){ tlayer2.left=0 setTimeout("move2(tlayer2)",pausebetweenimages) setTimeout("move1(document.main.document.first)",pausebetweenimages) return } if (tlayer2.left>=tlayer2.document.width*-1){ tlayer2.left-=5 setTimeout("move2(tlayer2)",100) } else{ tlayer2.left=scrollerwidth+5 tlayer2.document.write(slideimages[i]) tlayer2.document.close() if (i==slideimages.length-1) i=0 else i++ } } function move3(whichdiv){ tdiv=eval(whichdiv) if (tdiv.style.pixelLeft>0&&tdiv.style.pixelLeft<=5){ tdiv.style.pixelLeft=0 setTimeout("move3(tdiv)",pausebetweenimages) setTimeout("move4(second2)",pausebetweenimages) return } if (tdiv.style.pixelLeft>=tdiv.offsetWidth*-1){ tdiv.style.pixelLeft-=5 setTimeout("move3(tdiv)",100) } else{ tdiv.style.pixelLeft=scrollerwidth tdiv.innerHTML=slideimages[i] if (i==slideimages.length-1) i=0 else i++ } } function move4(whichdiv){ tdiv2=eval(whichdiv) if (tdiv2.style.pixelLeft>0&&tdiv2.style.pixelLeft<=5){ tdiv2.style.pixelLeft=0 setTimeout("move4(tdiv2)",pausebetweenimages) setTimeout("move3(first2)",pausebetweenimages) return } if (tdiv2.style.pixelLeft>=tdiv2.offsetWidth*-1){ tdiv2.style.pixelLeft-=5 setTimeout("move4(second2)",100) } else{ tdiv2.style.pixelLeft=scrollerwidth tdiv2.innerHTML=slideimages[i] if (i==slideimages.length-1) i=0 else i++ } } function startscroll(){ if (document.all){ move3(first2) second2.style.left=scrollerwidth } else if (document.layers){ document.main.visibility='show' move1(document.main.document.first) document.main.document.second.left=scrollerwidth+5 document.main.document.second.visibility='show' } } //--> </SCRIPT> 2) Insert this part under the <body> tag |