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 7 of 7
  1. #1
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts

    Alternative for marquee tag xhtml strict

    I want to make a scrolling news box. But I have found out that marquee is no longer valid in XHTML. Without using javascript as not everyone uses that how can I make a scrolling textbox?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    You can’t without JavaScript. But that’s not the point of a website. Your website should display the news, no matter how. If JS isn’t available or supported just show a static news box. If it’s supported you show the news scroller. It’s that simple and it’s called progressive enhancement.

  • #3
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts
    Thanks, thats is what I am worried about, Are iframes accessible as all of the javascripts I have seen are iframes

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Quote Originally Posted by quartzy View Post
    [A]ll of the javascripts I have seen are iframes
    Bah! That can’t be. Even the old school and outdated JS scrollers on DynamicDrive or JavaScriptKit aren’t iframes (at least not all of ’em).

    However, I can’t recommend any standalone news scroller as I’ve only worked with one based on jQuery so far. But searching the internet you’ll find some you can try.

  • #5
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts
    I have searched the internet and all I can find are for jquery, which may be too complicated for my client to update. That's why I just wanted a simple one, with maybe a js action to make it scroll. Seems I now have to do a static one. Thanks for posting anyway.

  • #6
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts

  • Users who have thanked Apostropartheid for this post:

    quartzy (02-10-2011)

  • #7
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts
    I can use the first one you listed, it is valid and simple. The others the messages changes often so they cant be used. Thanks for your help, I could not find anything suitable.


  •  

    Posting Permissions

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