How do I provide separate content for non-Flash web browsers?
January 22, 2004 2:19 PM   Subscribe

Web Dev: Is there any way to define alternate content (i.a.: an html menu) for non-flash enabled browsers?
posted by signal to Computers & Internet (6 answers total)
 
I might be wrong but the following should work just fine:

<object type="application/x-shockwave-flash" data="menu.swf">
<param name="movie" value="menu.swf" />
<ul><li>menu</li></ul>
</object>

posted by riffola at 2:36 PM on January 22, 2004


So a non-flash enabled browser should ignore the "object" tag?
posted by signal at 2:57 PM on January 22, 2004


Yes, the idea is that browsers that do understand object will suppress the stuff inside that's not param tags, while browsers that don't understand object will ignore it (and the params), leaving the other stuff.
posted by kindall at 3:45 PM on January 22, 2004


Although, not supporting object is not the same thing as not supporting Flash, so strictly speaking the answer is No.
posted by kindall at 4:27 PM on January 22, 2004


Moock's script: 3 JavaScript includes and all you need to do is give it the HTML to write for Flash and non-Flash browsers. It also lets you set a minimum required version.
posted by yerfatma at 6:23 PM on January 22, 2004


It works! (riffola's version). It seems that that's the way object is supposed to work, in a nested fashion, working its way in until it finds something it understands.
posted by signal at 9:05 PM on January 22, 2004


« Older Sprink break travel advice?   |   I'm looking for example by-laws. Newer »
This thread is closed to new comments.