如何在IE中的sIFR嵌入式标签上获取click事件? [英] How to get the click event on sIFR embedded tag in IE?

查看:170
本文介绍了如何在IE中的sIFR嵌入式标签上获取click事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实施了可扩展的Inman Flash替换(sIFR)来转换文本。问题是,我无法通过iSFR嵌入代码执行 onClick 事件。

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');
    });
});

这适用于Firefox但不适用于Internet Explorer。
有人能帮帮我吗?

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

推荐答案

Flash电影往往会吃这些事件。

Flash movies tend to eat these events.

sIFR 3允许您在 sIFR.replace()参数中指定 onRelease 回调处理程序,单击Flash影片时调用。

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

这篇关于如何在IE中的sIFR嵌入式标签上获取click事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆