RugbyRugby
07-04-2012, 02:38 AM
1) CODE TITLE: I think it's Marquee Script-�
2) AUTHOR NAME/NOTES: Dynamic Drive as far as I know
3) DESCRIPTION: Newsscroller
4) URL TO CODE: http://www.midwestrugby.org/08sevensseriesctdirectionsmapsandlodging.htm
or, ATTACHED BELOW (see #3 in guidelines below): I can't figure out where to go to get the instructions on 'how to' put the code in the page correctly, 'cause right now the page scrolls way to far to the right . . . any help will be greatly appreciated . . .
<p align="center"><tr>
<td>
<P
style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2px; TEXT-INDENT: 2px"><b><FONT style="FONT-SIZE: 36pt" face="High Speed">
<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 newsscroller's width (in pixels)
var newsscrollerwidth=910 pixels
//Specify the newsscroller's height
var newsscrollerheight=58
//Specify the newsscroller's newsscroller speed (larger is faster 1-10)
var newsscrollerspeed=6
//configure background color:
var newsscrollerbgcolor="#000000"
//Pause newsscroller onMousever (0=no. 1=yes)?
var pauseit=1
//Specify the newsscroller's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
var newsscrollercontent='<nobr><font class="newstitle"><font color="#FFFFFF"><FONT style="FONT-SIZE: 36pt" face="High Speed"><b>The Iowa City Ducks Rugby Club proudly presents their Ducks 7s Rugby Tournament</a> - <font color="#FFFFFF">Rugby all day at the University of Iowa Rugby Grounds</a> - <font color="#FFFFFF">The Magic Bus</a> - <font color="#FFFFFF">Join us</a> - <font color="#FFFFFF">Let the Good Times Roll</font></nobr>'
////NO NEED TO EDIT BELOW THIS LINE////////////
newsscrollerspeed=(document.all)? newsscrollerspeed : Math.max(1, newsscrollerspeed-1) //slow speed down by 1 for NS
var copyspeed=newsscrollerspeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-4000">'+newsscrollercontent+'</span>')
var actualwidth=''
var cross_newsscroller, ns_newsscroller
function populate(){
if (iedom){
cross_newsscroller=document.getElementById? document.getElementById("ienewsscroller") : document.all.ienewsscroller
cross_newsscroller.style.left=newsscrollerwidth+4
cross_newsscroller.innerHTML=newsscrollercontent
actualwidth=document.all? cross_newsscroller.offsetWidth : document.getElementById("temp").offsetWidth
}
else if (document.layers){
ns_newsscroller=document.ns_newsscroller.document.ns_newsscroller2
ns_newsscroller.left=newsscrollerwidth+8
ns_newsscroller.document.write(newsscrollercontent)
ns_newsscroller.document.close()
actualwidth=ns_newsscroller.document.width
}
lefttime=setInterval("scrollnewsscroller()",20)
}
window.onload=populate
function scrollnewsscroller(){
if (iedom){
if (parseInt(cross_newsscroller.style.left)>(actualwidth*(-1)+8))
cross_newsscroller.style.left=parseInt(cross_newsscroller.style.left)-copyspeed
else
cross_newsscroller.style.left=newsscrollerwidth+8
}
else if (document.layers){
if (ns_newsscroller.left>(actualwidth*(-1)+8))
ns_newsscroller.left-=copyspeed
else
ns_newsscroller.left=newsscrollerwidth+8
}
}
if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+newsscrollerwidth+';height:'+newsscrollerheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+newsscrollerwidth+';height:'+newsscrollerheight+';background-color:'+newsscrollerbgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=newsscrollerspeed">')
write('<div id="ienewsscroller" style="position:absolute;left:0;top:0"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+newsscrollerwidth+' height='+newsscrollerheight+' name="ns_newsscroller" bgColor='+newsscrollerbgcolor+'>')
write('<layer name="ns_newsscroller2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=newsscrollerspeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</SCRIPT>
</NOBR></SPAN></P></td>
</tr>
Cheers,
Shawn
2) AUTHOR NAME/NOTES: Dynamic Drive as far as I know
3) DESCRIPTION: Newsscroller
4) URL TO CODE: http://www.midwestrugby.org/08sevensseriesctdirectionsmapsandlodging.htm
or, ATTACHED BELOW (see #3 in guidelines below): I can't figure out where to go to get the instructions on 'how to' put the code in the page correctly, 'cause right now the page scrolls way to far to the right . . . any help will be greatly appreciated . . .
<p align="center"><tr>
<td>
<P
style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2px; TEXT-INDENT: 2px"><b><FONT style="FONT-SIZE: 36pt" face="High Speed">
<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 newsscroller's width (in pixels)
var newsscrollerwidth=910 pixels
//Specify the newsscroller's height
var newsscrollerheight=58
//Specify the newsscroller's newsscroller speed (larger is faster 1-10)
var newsscrollerspeed=6
//configure background color:
var newsscrollerbgcolor="#000000"
//Pause newsscroller onMousever (0=no. 1=yes)?
var pauseit=1
//Specify the newsscroller's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
var newsscrollercontent='<nobr><font class="newstitle"><font color="#FFFFFF"><FONT style="FONT-SIZE: 36pt" face="High Speed"><b>The Iowa City Ducks Rugby Club proudly presents their Ducks 7s Rugby Tournament</a> - <font color="#FFFFFF">Rugby all day at the University of Iowa Rugby Grounds</a> - <font color="#FFFFFF">The Magic Bus</a> - <font color="#FFFFFF">Join us</a> - <font color="#FFFFFF">Let the Good Times Roll</font></nobr>'
////NO NEED TO EDIT BELOW THIS LINE////////////
newsscrollerspeed=(document.all)? newsscrollerspeed : Math.max(1, newsscrollerspeed-1) //slow speed down by 1 for NS
var copyspeed=newsscrollerspeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-4000">'+newsscrollercontent+'</span>')
var actualwidth=''
var cross_newsscroller, ns_newsscroller
function populate(){
if (iedom){
cross_newsscroller=document.getElementById? document.getElementById("ienewsscroller") : document.all.ienewsscroller
cross_newsscroller.style.left=newsscrollerwidth+4
cross_newsscroller.innerHTML=newsscrollercontent
actualwidth=document.all? cross_newsscroller.offsetWidth : document.getElementById("temp").offsetWidth
}
else if (document.layers){
ns_newsscroller=document.ns_newsscroller.document.ns_newsscroller2
ns_newsscroller.left=newsscrollerwidth+8
ns_newsscroller.document.write(newsscrollercontent)
ns_newsscroller.document.close()
actualwidth=ns_newsscroller.document.width
}
lefttime=setInterval("scrollnewsscroller()",20)
}
window.onload=populate
function scrollnewsscroller(){
if (iedom){
if (parseInt(cross_newsscroller.style.left)>(actualwidth*(-1)+8))
cross_newsscroller.style.left=parseInt(cross_newsscroller.style.left)-copyspeed
else
cross_newsscroller.style.left=newsscrollerwidth+8
}
else if (document.layers){
if (ns_newsscroller.left>(actualwidth*(-1)+8))
ns_newsscroller.left-=copyspeed
else
ns_newsscroller.left=newsscrollerwidth+8
}
}
if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+newsscrollerwidth+';height:'+newsscrollerheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+newsscrollerwidth+';height:'+newsscrollerheight+';background-color:'+newsscrollerbgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=newsscrollerspeed">')
write('<div id="ienewsscroller" style="position:absolute;left:0;top:0"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+newsscrollerwidth+' height='+newsscrollerheight+' name="ns_newsscroller" bgColor='+newsscrollerbgcolor+'>')
write('<layer name="ns_newsscroller2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=newsscrollerspeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</SCRIPT>
</NOBR></SPAN></P></td>
</tr>
Cheers,
Shawn