There is scrolling text here: (the 3rd example) but I have no idea why it works. Could someone please explain this to me?
Thanks.
function ex3(obj){
if(ex3switch=="on"{
document.getElementById(obj).style.display="inline";
if(pos > -100){
document.getElementById(obj).style.left=pos+"%";
pos--;
setTimeout("ex3('eg3')", 100);
}else{
pos=100;
setTimeout("ex3('eg3')", 100);
}
}else{document.getElementById(obj).style.display="none"}
}
Thanks.
function ex3(obj){
if(ex3switch=="on"{
document.getElementById(obj).style.display="inline";
if(pos > -100){
document.getElementById(obj).style.left=pos+"%";
pos--;
setTimeout("ex3('eg3')", 100);
}else{
pos=100;
setTimeout("ex3('eg3')", 100);
}
}else{document.getElementById(obj).style.display="none"}
}