sIFR jQuery切换,在FF3中不起作用 [英] sIFR jQuery toggle, not working in FF3

查看:68
本文介绍了sIFR jQuery切换,在FF3中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个sIFR替换的H2链接,可以简单地打开和关闭另一个div(带有jQuery). 似乎"可以在除Firefox 3之外的所有浏览器中使用.有什么想法吗?

I have a sIFR replaced H2 link that simply toggles (w/ jQuery) another div on and off. 'Seems' to work in all browsers but Firefox 3. Any thoughts ?

<ul id="titlenav">
   <li><h2><a href="javascript:void()">Title</a></h2>
    <ul id="titlemenu">
       <li>1</li>
       <li>2</li>
       <li>3</li>
    </ul>
   </li>
</ul>


$('#titlenav h2').click(function() {
  $('#titlemenu').Toggle();
});

我的siFr替换config和css非常简单,并且sIFr链接通常可以正常工作,只是不能使用jquery函数.我正在使用 ; -jquery-1.3.1 -sIFR 3 R 427

My siFr replace config and css is ultra simple and sIFr links generally work, just not jquery functions. Im using ; - jquery-1.3.1 - sIFR 3 R 427

欢迎任何建议.我对这一切都很陌生.

Any advice welcomed. I'm pretty new to all this.

推荐答案

问题是Flash上​​的click事件不会传播到h2元素.查看 onRelease回调,您可以将其指定为.每当您单击替换的Flash电影时,它就会被触发.

The problem is that the click event on the Flash doesn't propagate to the h2 element. Check out the onRelease callback, which you can specify as an argument to sIFR.replace. It's fired whenever you click on a replaced Flash movie.

这篇关于sIFR jQuery切换,在FF3中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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