...

View Full Version : Why marquee don't work under IE8



EdwardKing
05-09-2009, 12:22 AM
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?


<!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>

bazz
05-09-2009, 01:06 AM
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

EdwardKing
05-09-2009, 01:51 AM
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?

drhowarddrfine
05-09-2009, 03:02 AM
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.

abduraooft
05-09-2009, 08:57 AM
You could achieve this by some javascript code, if really required.
See http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum