PDA

View Full Version : Need some help



atirws
07-14-2007, 01:42 AM
1) Script Title: External Data Source Marquee Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/emarquee.htm

3) Describe problem: trying to get this to work in other browsers like firefox

jscheuer1
07-14-2007, 06:29 AM
http://www.dynamicdrive.com/dynamicindex2/iframe-scroller.htm

atirws
07-14-2007, 08:05 PM
http://www.dynamicdrive.com/dynamici...e-scroller.htm

This one works, but would like it to scroll through not start over is there a way to make it do that ?

jscheuer1
07-15-2007, 02:55 AM
Change this:


function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="5px"
setTimeout("scrollDiv()",40)
}

to:


function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top=document.body.clientHeight||document.documentElement.clientHeight? Math.max(document.body.clientHeight, document.documentElement.clientHeight)+'px' : '5px';
setTimeout("scrollDiv()",40)
}