SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is Marquee Now Out Dated

    Hi, i need to set some text scrolling across the top of my web page. I am currently using the <marquee> tag to achieve this, however i find it very jittery / jagedy...

    I understand that the <marquee> tag has been around for years now... is there a better system to used... would it be better to use a small js script for this as it would probably scroll the text smoother... if so does anyone have a good script to use, thanks in advance for your help...

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,379
    Mentioned
    269 Post(s)
    Tagged
    5 Thread(s)
    There was a thread about this a few months ago, which you might find helpful:

    http://www.sitepoint.com/forums/show...ng-marquee-tag

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,863
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by oo7ml View Post
    I understand that the <marquee> tag has been around for years now... is there a better system to used...
    The <marquee> tag has never been valid and has therefore never been supported by all browsers. The marquee functionality is a behaviour and the behaviour of a web page is supposed to be defined using JavaScript. You can have full control of a marquee's functionality when you generate that functionality in JavaScript as you are supposed to.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    The <marquee> tag has never been valid and has therefore never been supported by all browsers. The marquee functionality is a behaviour and the behaviour of a web page is supposed to be defined using JavaScript. You can have full control of a marquee's functionality when you generate that functionality in JavaScript as you are supposed to.
    Hi Felgall, do you have any js scripts that would accomplish this... finding it hard to find a robust one online... thanks for your help...

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,863
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by oo7ml View Post
    Hi Felgall, do you have any js scripts that would accomplish this... finding it hard to find a robust one online... thanks for your help...
    See http://www.felgall.com/jstip109.htm
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  6. #6
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    WOW... thanks Stephen... i was most happy to see "A script you wrote several years ago is worth revisiting just to see what changes you might be able to apply to make it better than when you first wrote it." as a lot of scripts i find on the net are wrote many years ago which always worries me... looking forward to adding this later, thanks

  7. #7
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by oo7ml View Post
    WOW... thanks Stephen... i was most happy to see "A script you wrote several years ago is worth revisiting just to see what changes you might be able to apply to make it better than when you first wrote it." as a lot of scripts i find on the net are wrote many years ago which always worries me... looking forward to adding this later, thanks
    All working perfectly, however, how do i control the speed of the scroll, thanks again...


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
  •