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 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Why marquee don't work under IE8

    I use marquee to realize roll function,following code can run well in IE6 and IE7.But in IE8,I find my folloing code don't work! why? how to correct following code to make it work again under IE6,IE7 and IE8?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <marquee direction="up" border="0" width="100" height="80" scrollamount=2 scrolldelay=80 onmouseout='if (document.all!=null){this.start()}' onmouseover='if (document.all!=null){this.stop()}'>
    This is a roll example</marquee>
    </html>

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    I can't recall much about marquee since it is so 1990's ( :tip: ), but I think it may be the doctype you are using rather than the OS or browser that prevents it from working.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #3
    New Coder
    Join Date
    Jun 2005
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by bazz View Post
    I can't recall much about marquee since it is so 1990's ( :tip: ), but I think it may be the doctype you are using rather than the OS or browser that prevents it from working.

    bazz
    Why same marquee code can run under IE6 and IE7,but can't run under IE8? I am puzzled with it. IE8 don't support it?

  • #4
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    Doing a little googling and it seems it doesn't work in IE8 standards mode. 'marquee' has not been part of the html standard in a decade or so but it's interesting they dropped it.

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    You could achieve this by some javascript code, if really required.
    See http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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