Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JavaScript Scroller Help - Alert-It Scroller

    Hello,

    First, thanks for all of your help on this forum it's a great service. I found the following scroller which works exceptionally for what I need except for the fact it only works in I.E. Do any of you know what I can do to make it work for Safari & Firefox?

    If not do you know of another scroller that works similar to this one? The key factor to this scroller is that it does not affect my CSS background (push things out of alignment.. etc..)

    Code:
    <marquee id="alertit" style="position:absolute;left:0px;top:0;background-color:#FFFFE6" onMouseover="this.scrollAmount=1" onMouseout="this.scrollAmount=speed"></marquee>
    
    <script type="text/javascript">
    
    /*
    Alert-It Scroller script- By JavaScript Kit
    For this and over 400+ free scripts, visit http://www.javascriptkit.com
    This notice must stay intact
    */
    
    //Customize your message here. Use any HTML desired:
    var themsg='<span style="font:italic 22px Arial;color:red;"><b>Breaking News: Microsoft Stock up 10 points! Source: <a href="http://cnn.com" target="_new">CNN</a></b></span>'
    var speed=6 //speed of scroller (1-10 or more)

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    If you don't mind a framework, jQuery has plenty of plugins that can handle this task. Here's one:

    http://plugins.jquery.com/project/autoScroller

  • #3
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation News Scroller

    Thanks for the reply - the scroller you provided works great but the main scroller I am looking for is an auto news scroll that automatically scrolls news horizontally. Kind of like a news flash.


  •  

    Posting Permissions

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