Log
XHTML, Opera and Flash
Getting Flash into a valid XHTML document that works in Mozilla, Opera, IE, and Netscape 4 is ridiculously difficult.
You might think that a simple document.write with the appropriate embed code would do it, but it takes 2 script blocks, one before the object tag for Opera, and one inside it for Netscape 4.
It seems that both Netscape 4 and Opera sort of support the object syntax that I’m using. If the embed tag isn’t nested inside the object tag in Netscape 4, the Flash movie appears twice, and crashes the browser when the object displays.
Opera, on the other hand, will load the Flash player, but won’t display the movie, even with the embed tag inside the object tag. The embed tag needs to go before the object tag, and—here’s the tricky part—needs to have an open comment tag at the end, so the object doesn’t display. But, if there’s another document.write with a closing comment after the object, Opera renders it in the page. But for some reason, it renders the page correctly without the closing comment. It effectively comments out the object, but nothing else on the page. Strange…
02/23/02 02:56PM Flash
Comments
Add a Comment
Have something to say about what I wrote here? Let’s hear it!
- Your name and email address are required, but your email will not be displayed on the site
- If you provide a URL, a link to your site will appear
- You may use the following HTML:
<strong>bold</strong><em>italic</em><a href="http://url">links</a>
- Double line breaks will be converted to paragraphs.
- As you type, you should get a nice little preview of your comment directly below the text box.
- I reserve the right to edit any comment for any reason (I’ll be reasonable).
Recently Played on iTunes
-
“Abierto”
Soul Food Taqueria
Tommy Guerrero
10/06/08 16:28 -
“Hit Or Miss”
Punk Rock Days: The Best Of DBL
Down By Law
10/06/08 16:25 -
“Start!”
Compact Snap
The Jam
10/06/08 16:22
k:mookx:
yes this is totally fucked. i agree.
03/04/04 8:48AM