Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-09-2009, 12:22 AM   PM User | #1
EdwardKing
New Coder

 
Join Date: Jun 2005
Posts: 42
Thanks: 2
Thanked 0 Times in 0 Posts
EdwardKing is an unknown quantity at this point
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>
EdwardKing is offline   Reply With Quote
Old 05-09-2009, 01:06 AM   PM User | #2
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
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
bazz is offline   Reply With Quote
Old 05-09-2009, 01:51 AM   PM User | #3
EdwardKing
New Coder

 
Join Date: Jun 2005
Posts: 42
Thanks: 2
Thanked 0 Times in 0 Posts
EdwardKing is an unknown quantity at this point
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?
EdwardKing is offline   Reply With Quote
Old 05-09-2009, 03:02 AM   PM User | #4
drhowarddrfine
Senior Coder

 
Join Date: Oct 2005
Posts: 1,340
Thanks: 0
Thanked 61 Times in 60 Posts
drhowarddrfine can only hope to improve
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.
drhowarddrfine is offline   Reply With Quote
Old 05-09-2009, 08:57 AM   PM User | #5
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
You could achieve this by some javascript code, if really required.
See http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:07 AM.


Advertisement
Log in to turn off these ads.