Other Entries

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

k:mookx:

yes this is totally fucked. i agree.

03/04/04 8:48AM

Add a Comment

Have something to say about what I wrote here? Let’s hear it!

The Rules

Personal Information




Remember Information


Comment Preview

 

 

Recently Played on iTunes

  1. “Abierto”
    Soul Food Taqueria
    Tommy Guerrero
    10/06/08 16:28
  2. “Hit Or Miss”
    Punk Rock Days: The Best Of DBL
    Down By Law
    10/06/08 16:25
  3. “Start!”
    Compact Snap
    The Jam
    10/06/08 16:22

Last 100 Songs >