Results 1 to 2 of 2

Thread: Pausing up-down message scroller

  1. #1
    Join Date
    Jan 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pausing up-down message scroller

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The style of the items in the scroller can be adjusted using a style block in the head of the page, ex:

    Code:
    <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):

    Code:
    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
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •