|
Hello,
I have a vertical scroller script which i have working in IE and Opera, however the Netscape part of the script isn't working. I have stript the netscape part of the script out and inserted it below. This is in the header of my page and i am calling the populate function in the body using onload. However nothing is appearing. I am at a loss as to what I am doing wrong. Can anyone help me please?
Thanks in advance
Tom
var width="450px";
var height="0px";
var speed=1;
speed=(document.all)? speed : Math.max(1, speed-1)
var scroller, scroller2;
var totimg=12;
var x;
var y;
var z;
var content='';
function populate(){
x=1;
y=1;
z=1;
for(i=x;i<=(x+y);i++){
content+="<a href='starbuys.html'><img src='style/images/starbuys/" + i + ".gif' border=0></a><br>";
}
scroller=document.scroller.document.scroller2;
scroller.top="0px";
scroller.document.write(content);
scroller.document.close();
long=setInterval("scrollscroller()",5000);
}
function scrollscroller(){
if (z>1){
content='';
}
if (x==12){
content='';
content="<a href='starbuys.html'><img src='/forum/style/images/starbuys/12.gif' border=0></a><br>";
content+="<a href='starbuys.html'><img src='/forum/style/images/starbuys/1.gif' border=0></a><br>";
}
else{
for(i=x;i<=x+y;i++){
content+="<a href='starbuys.html'><img src='style/images/starbuys/" + i + ".gif' border=0></a><br>";
}
}
scroller=document.scroller.document.scroller2;
scroller.top="0px";
scroller.document.write(content);
scroller.document.close();
short=setInterval("scroll()",10);
}
function scroll(){
if (ns_scroller.top>(94*(-1))){
ns_scroller.top-=parseInt(speed)+"px";
}
else{
if (x<totimg){
x+=1;
z+=1;
}
else{
x=1;
z+=1;
}
clearInterval(short);
return;
}
}
write('<ilayer width='+scrollerwidth+' height='+scrollerheight+' name="ns_scroller">')
write('<layer name="ns_scroller2" width='+scrollerwidth+' height='+scrollerheight+'left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed"></layer>')
write('</ilayer>')
|
|
|
|
|
|
|
|
|
|