471,851 Members | 1,235 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,851 software developers and data experts.

. FIREFOX nested-marquee bug

The following HTML marquee code
works better in Microsoft Internet Explorer,
breaks (in more than one way) in Mozzila Firefox
Expand|Select|Wrap|Line Numbers
  1. <pre>------------------------------------------------- start HTML code ------------------------------
  3. <marquee>  
  4.                     <marquee width=100% direction=up>
  5.            <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 1</marquee> <br>
  6. <CENTER><marquee  width=60% BGCOLOR=BLUE STYLE="text-align:center">INNER  2 </marquee><br>
  7.            <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 3</marquee><br>
  8.                     </marquee>
  9. </marquee>
  11. <pre>
  17. <img src=http://geometrica.tripod.com/dantelle.png>
  22. this is the llllllllllllllllllllllllllllast line
---------------------------------------------- end HTML code ------------------------------
Oct 17 '08 #1
5 4840
David Laakso
397 Expert 256MB
Document content is HTML Proprietary. Validate the markup.
Expand|Select|Wrap|Line Numbers
  1. Warning: <marquee> is not approved by W3C; Warning: missing <!DOCTYPE> declaration; Warning: nested emphasis <marquee>; Warning: trimming empty <marquee>
  2. <marquee>
  3. Warning: <marquee> is not approved by W3C; Warning: inserting implicit <marquee>; Warning: trimming empty <marquee>
  4. <marquee width=100% direction=up>
  5. Warning: <marquee> is not approved by W3C; Warning: missing </center>; Warning: <marquee> attribute "bgcolor" has invalid value "ORANGE"
  6. <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 1</marquee> <br>
  7. Warning: <marquee> is not approved by W3C; 
  8. Warning: missing </center>
  9. <CENTER><marquee width=60% BGCOLOR=BLUE STYLE="text-align:center">INNER 2 </marquee><br>
  10. Warning: <marquee> is not approved by W3C; Warning: missing </center>; Warning: <marquee> attribute "bgcolor" has invalid value "ORANGE"
  11. <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 3</marquee><br>
  12. Warning: discarding unexpected </marquee>
  13. </marquee>
  14. Warning: discarding unexpected </marquee>
  15. </marquee> 
Oct 17 '08 #2
7,435 Expert 4TB
Well, first of all, the marquee tag is not part of the HTML standard and never has been so I'm not surprised if something doesn't work. iirc, this was a Microsoft invention from the 90s.
Oct 17 '08 #3
David Laakso
397 Expert 256MB
All versions of Internet Explorer need a doctype. The doctype they need for proprietary html "marquee" is:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
Validate to that doctype. Once that is done, or as close to it as you are able to achieve, bring it back if the proprietary html "marquee" does not work (render as intended) in compliant browsers -- among them -- Opera, Safari, and Firefox. Better yet: Remember, not to forget, that this is the year of our Lord 2008-- not 1998. And that, perhaps, you could explore contemporary means to achieve your goal. Or could you?
Oct 18 '08 #4
Oct 18 '08 #5
7,435 Expert 4TB
First, you are trying to use html. What you linked to is CSS.
Second, that is a Marquee module, not a marquee property, though there is a marquee-style.
Third, that is still in draft form and I'm not sure which browsers support it. Opera does so I think Safari would, too. IE definitely will not.
Oct 18 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by TR | last post: by
9 posts views Thread by WebMatrix | last post: by
13 posts views Thread by Giggle Girl | last post: by
3 posts views Thread by McKirahan | last post: by
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.