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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Marquee replacement

    Hello,

    I have found few good javascript replacements for <marquee> tag, but I want to set the direction from top to bottom, all of these supports the bottom-top direction.
    I'd also like to make a button "Stop" (with becames "Start" when clicked) to let users control the float of information.

    Can everybody guide me which free javascript is the best and how to customize it to fill my needs?

    Cheers,
    Soul

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Have a look at http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm
    You could achieve your goal by making some changes in the following function
    Code:
    function scrollmarquee(){
    if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
    cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
    else
    cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
    }
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,535
    Thanks
    3
    Thanked 513 Times in 500 Posts
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/

  • #4
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    @Abduraooft
    Thanks for help, I've simply changed top to bottom and it works

    @Vwphillips
    Script You've shown is amazing but I'm not able to customize it to fill my needs

    I have made this simple script to change the button's value but my JS knowlegde is too small to make it work.
    Code:
     F(x,y){    
    x.d = x.d? (x.start(),false):(x.stop(),true);    
    y.value = x.d?'Start':'Stop'; 
    }


  •  

    Posting Permissions

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