Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling text help!

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
hello. on my web page there is some scrolling text to the right hand side.

When i try to make this text smaller by typing in <size=&quot;1&quot;> the text is still too big.

Here is the code:

<script language=&quot;JavaScript1.2&quot;>

/*
Cross browser marquee script II-
© Dynamic Drive (For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/


//Specify the marquee's width (in pixels)
var marqueewidth=120
//Specify the marquee's height
var marqueeheight=80
//Specify the marquee's scroll speed (larger is faster)
var speed=2
//Specify the marquee contents
var marqueecontents='<font face=&quot;Arial&quot;><size=&quot;1&quot;><b><p align=&quot;center&quot;><font color=&quot;white&quot;>the annoyance mp3s are now working!</font>'

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

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout(&quot;window.onresize=regenerate&quot;,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(&quot;scrollit()&quot;,100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}

window.onload=regenerate2
</script>
<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name=&quot;cmarquee01&quot;>
<layer name=&quot;cmarquee02&quot; width=&{marqueewidth}; height=&{marqueeheight};></layer>
</ilayer>
</div>
</div>
<!--------------------------- STOP COPYING THE HTML HERE --------------------------->


hopefully somebody can help me?

thanks a lot

Howlette ;-)
 
Hi,
maybe try this before your script:

<STYLE TYPE=&quot;text/css&quot;>
<!--
BODY { font-family: verdana; font-size: 10;}
-->
</STYLE>

ciao
yannick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top