<![CDATA[
/*
Left-Right image slideshow Script-
By Dynamic Drive (www.dynamicdrive.com)
For full source code, terms of use, and 100's more scripts, visit http://dynamicdrive.com
*/
///////configure the below four variables to change the style of the slider///////
//set the scrollerwidth and scrollerheight to the width/height of the LARGEST image in your slideshow!
var scrollerwidth=200
var scrollerheight=150
var scrollerbgcolor='white'
//30000 miliseconds=1 seconds
var pausebetweenimages=3
//configure the below variable to change the images used in the slideshow. If you wish the images to be clickable, simply wrap the images with the appropriate tag
var slideimages=new Array()
slideimages[0]=’ ‘
slideimages[1]=’ ‘
slideimages[2]=’ ‘
slideimages[1]=’ ‘
slideimages[2]=’ ‘
//extend this list
///////Do not edit pass this line///////////////////////
if (slideimages.length>1)
i=2
else
i=0
function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.left>0&&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=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=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=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’
}
}
window.onload=startscroll
]]>
<![CDATA[
if (document.all){
document.writeln('‘)
document.writeln(‘
‘)
document.writeln(‘
‘)
document.write(slideimages[0])
document.writeln(”)
document.writeln(‘
‘)
document.write(slideimages[1])
document.writeln(”)
document.writeln(”)
document.writeln(”)
}
]]> |