PDA

View Full Version : Can it be Paused?


bman
10-30-2003, 09:17 AM
I'm looking for the couple lines of code to add that will cause this scroller to pause when mouse-overed. Your help is appreciated.


var marqueewidth=150

var marqueeheight=120

var speed=1

var marqueecontents='<P ALIGN="CENTER"><FONT FACE="ARIAL" SIZE="2" COLOR="990000"><B>next sscc event</B><BR><FONT FACE="VERDANA" SIZE="1" COLOR="000066">TURKEY ROD RUN<BR>Daytona Int\'l Speedway<BR>November 27-30, 2003<BR>More info in <a href="events.htm">Events</a></P><P ALIGN="CENTER"><FONT FACE="ARIAL" SIZE="2" COLOR="990000"><B>mustang resto update</B><BR><FONT SIZE="1" COLOR="000066">Charles Powell and Ray Op\'t Hof continue to update the restoration of Ray\'s 1965 Mustang. View the latest episode in Tech.</P><P ALIGN="CENTER"><FONT FACE="ARIAL" SIZE="2" COLOR="990000"><B>sports special registry</B><BR><FONT SIZE="1" COLOR="000066">SSCC member Bruce Wallace maintains the 1969 Sports Special Registry for the CCOA. If you own one, and it isn\'t in the Registry yet, contact <a href="mailto:Bruce.Wallace@ccci.org">Bruce</a> with your information.</P><P ALIGN="CENTER"><FONT FACE="ARIAL" SIZE="2" COLOR="990000"><B>classic cougar forums</B><BR><FONT SIZE="1" COLOR="000066">Need a quick answer to a Cougar-related question? Want to keep in contact with other Cougar owners? Join this internet forum, and become part of a fast-growing Cougar community. Visit <a href="http://www.mercurycougar.net">mercurycougar.net</a> for the details.</P><P ALIGN="CENTER"><FONT FACE="ARIAL" SIZE="2" COLOR="990000"><B>ft. lauderdale weekend</B><BR><FONT SIZE="1" COLOR="000066">The SSCC is considering spending the July 9th weekend in Ft. Lauderdale. See the plan, and take the biref survery in Events.</P><P ALIGN="CENTER"><FONT FACE="ARIAL" SIZE="2" COLOR="990000"><B>the wallace\'s ss resto</B><BR><FONT SIZE="1" COLOR="000066">Bruce and Rob each have one. Rob\'s is a national show winner. Follow along as they get this one ready for the 40th Anniversary East Nationals. Story and photos in Tech.</P><P ALIGN="RIGHT"><FONT COLOR="666666">end of messages<BR>scroll will repeat</P></FONT>'

if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}

window.onload=regenerate2

Willy Duitt
10-30-2003, 12:40 PM
For IE:

if (document.all)
document.write('<marquee onmouseover="this.stop()" onmouseout="this.start()" direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')

....Willy

bman
10-30-2003, 01:00 PM
Thanks for the same-day service...y'all are great!