开发者

jquery media conflict with swfobject

开发者 https://www.devze.com 2022-12-21 21:44 出处:网络
If I use jquery media plugin WITH swfobject 2.2开发者_StackOverflow中文版 I get an \'unknown runtime error\' in IE.

If I use jquery media plugin WITH swfobject 2.2开发者_StackOverflow中文版 I get an 'unknown runtime error' in IE.

It works fine in FF and other browsers.

If i remove swfobject.js then the media works fine as it loads using simple object/embed tags.

But I need to use swfobject as well (for other things).

Has anybody come across this or a fix?

A.


Try to set id attribute to the element with your video.

<a class="media" href="video.flv" id="specimen_video">Specimen Video</a>

I had similar problem and it helps me.


Try using jQuery no conflict.

jQuery.noConflict();
// Do something with jQuery
jQuery("div p").hide();
// Do something with another library's $()
$("content").style.display = 'none';
0

精彩评论

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

关注公众号