开发者

Google Chrome issue with flash wmode: "transparent" cant catch click event

It works on IE7 and mozilla, but on Chrome when u set param wmode: "transparent" it doesn't react to mouse event... Any solutions?开发者_Go百科


I think I found the solution :

Try to use "mousedown" instead of "click" with jquery.

I did that: $('#yourobject').mousedown();

It works perfectly for me on chrome, ff, etc.

I also put my flash object in a div container. Don't know if it helps.

If you create your flash object via javascript (with swfobject.js), don't forget to use the ".live" method of jquery ( $('#yourobject').live('mousedown', function(){ ... });


The code below generates an issue in Firefox. To fix it, use:

<object data="yourMovie.swf" type="application/x-shockwave-flash" width="740" height="103" id="menu" align="middle"><param name="allowScriptAccess" value="sameDomain">
        <param name="quality" value="best">
        <param name="wmode" value="transparent">
        <param name="bgcolor" value="#ffffff" />
        <param name="movie" value="yourMovie.swf" />
        <embed src="" quality="high" wmode="transparent" pluginspage="http://www.adobe.com/go/getflash" type="application/x-shockwave-flash" width="740" height="103"></embed>
</object>

See you.


you can use html code like this:

 <object data="YourFile.swf" type="application/x-shockwave-flash" width="550" height="400">
        <param name="allowScriptAccess" value="sameDomain">
        <param name="quality" value="best">
        <param name="wmode" value="transparent">
        <embed src="" quality="high" wmode="transparent" pluginspage="http://www.adobe.com/go/getflash" type="application/x-shockwave-flash" width="550" height="400"></embed>
        <param name="bgcolor" value="#ffffff" />
        <param name="movie" value="YourFile.swf" />
    </object>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜