It is the same script you referenced, including the now deprecated language attribute and missing the now technically 'required' type attribute. The only difference from the original is that I did wrap it in a division:
Code:
<div style="position:relative;overflow:hidden;"><script language="JavaScript1.2">
/*
Cross browser Marquee script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/
//Specify the marquee's . . .
. . .}
document.write('</td></table>')
}
}
</script></div>
All that did (I think) was get rid of the horizontal scrollbar from the bottom of the page. I also, of course, changed the maequeecontent variable to:
Code:
var marqueecontent='<nobr><font face="Arial">Lorem ipsum d . . . neque nonor et</font></nobr>'
And, I changed the scrollmarquee function to (additions red):
Code:
function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
else {
clearInterval(lefttime)
return;
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
}
}
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed
else
ns_marquee.left=parseInt(marqueewidth)+8
}
}
All that does is make it stop at the end of the first pass.
You can use your browser's 'view source' to see the entire markup and script. I'm thinking that there may be something about your marqueecontent variable that caused the problem. Perhaps a syntax error or, a line break. The entire marqueecontent variable must be on a single line in the source code.
Please post a link to the page on your site that contains the problematic script so we can check it out.
Bookmarks