The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

flash detection (4 posts)

  1. thornomad
    Posted 9 years ago #


    This isn't particularly wordpress specific (except that I want to use it in the theme of my wordpress blog) but:

    Is there any PHP / Javascript / XHTML code I can use to detect whether the browser that is loading the page has flash installed ?

    I want to use a Flash MP3 player on my site to replace the list of podcast chapter links on my sidebar; this way someone has the option to just listen to the chapter in the browser, or follow the link to the post. But: if a viewer doesn't have flash installed, I want it to default to the basic ul list I have now.


  2. whooami
    Posted 9 years ago #

    you dont need that, do this:

    <object type="application/x-shockwave-flash" data="blah.swf" width="x" height="x">
    <param name="movie"blah.swf" />
    <param name="menu" value="false" />
    <param name="bgcolor" value="xxxxxx" />
    <param name="wmode" value="transparent" />
    this is what you see without flash <--- make that your no flash content

  3. thornomad
    Posted 9 years ago #

    That, my friend, is genius. And I shall employ it immediately and you will be forever welcome at my campfire.

    What is "wmode" ?

  4. whooami
    Posted 9 years ago #

    its for ppl that use lightbox on their site also, I took the code off my site. Easier than looking it up elsewhere :)

    dont know if you use it either, but there is little reg hack floating around the net to enable and disable flash in ie. I dont use any flash blockers in ff so it (the hack) comes in handy when i want to see how things look without flash.

Topic Closed

This topic has been closed to new replies.

About this Topic