Display alternate content when Flash is not installed with jquery.swfobject

Posted by Deca on Stack Overflow See other posts from Stack Overflow or by Deca
Published on 2010-06-02T23:12:33Z Indexed on 2010/06/02 23:14 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

How can I display alternate HTML with the jquery.swfobject plugin for browsers without Flash? I'm unable to find any documentation or examples showing how to do this.

Here is a snippet of my code:

    <script type="text/javascript" language="Javascript" src="jquery.1.4.2.js"></script>
    <script type="text/javascript" language="Javascript" src="jquery.swfobject.1-0-9.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){

            $("#contentflash").flash({
                swf: "myswf.swf",               
                width: "100%",
                height: "100%",
                params: {
                    wmode: "opaque"
                }
            });

        });             
    </script>
</head>
<body>
<div id="contentflash"></div>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html