Jquery插件在Firefox和IE中不起作用

时间:2014-02-08 10:01:18

标签: jquery internet-explorer firefox

jquery环形交换插件对我来说在所有浏览器中都很棒,而不是在Firefox和IE中。我有最新版本的浏览器和最新版本的插件。所有其他jquery插件都可以正常运行,并且还启用了javascript。

以下是在按下按钮后打开所有浏览器中的环形交换插件但firefox和Internet Explorer的代码:

$(window).load(function() {
// Start round about action.
$('ul').roundabout({
shape: "waterWheel"
});

// Hide and show on click.
  $('#menuButton').click(function() {
    $('#roundabout-container').stop().toggle(800);
  });
});

非常感谢帮助!
提前谢谢!

1 个答案:

答案 0 :(得分:0)

将代码包装在准备好的文档中:http://learn.jquery.com/using-jquery-core/document-ready/

相关问题