PDA

View Full Version : Pausing up-down message scroller



MaxxFusion
01-27-2006, 10:42 PM
I am using this message scroller and I would like to be able to change the size of the font and also bold it. I would also like to disable the scrolling when I only have one message.

How can I do this?

Thanks
Frank

jscheuer1
01-28-2006, 10:40 AM
The style of the items in the scroller can be adjusted using a style block in the head of the page, ex:


<style type="text/css">
#main2 {
font-size:1.5ex;
font-weight:bold;
}
</style>

To have it not scroll if there is only one item, find the black part of the below at the end of the script and add the red parts (don't forget the trailing bracket):


if (messages.length>1){
if (window.addEventListener)
window.addEventListener("load", startscroll, false)
else if (window.attachEvent)
window.attachEvent("onload", startscroll)
else if (ie||dom)
window.onload=startscroll
}