How to get the click event on sIFR embedded tag in IE?

只愿长相守 提交于 2020-01-04 09:22:04

问题


I have implemented Scalable Inman Flash Replacement (sIFR) to convert text. The issue is, I'm unable to do onClick event over the iSFR embed tags.

$(function() {
    $("embed").click(function(){
        alert('clicked over embed');
    });
});

This works in Firefox but not in Internet Explorer. Can anybody help me?


回答1:


Flash movies tend to eat these events.

sIFR 3 lets you specify an onRelease callback handler in the sIFR.replace() arguments, which is called when the Flash movie is clicked on.




回答2:


It might also be worth checking out cufón at http://cufon.shoqolate.com/generate/



来源:https://stackoverflow.com/questions/801642/how-to-get-the-click-event-on-sifr-embedded-tag-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!