简体   繁体   English

javascript在mozilla firefox中不起作用

[英]javascript not working in mozilla firefox

<script type ="text/jscript" >
         $(function(){
             $('.slide-out-div').tabSlideOut({
                 tabHandle: '.handle1',                              //class of the element that will be your tab
                 pathToTabImage: 'images/todolist.png',          //path to the image for the tab (optionaly can be set using css)

                 imageHeight: '135px',                               //height of tab image
                 imageWidth: '40px',                               //width of tab image    
                 tabLocation: 'right',                               //side of screen where tab lives, top, right, bottom, or left
                 speed: 300,                                        //speed of animation
                 action: 'click',                                   //options: 'click' or 'hover', action to trigger animation
                 topPos: '200px',                                   //position from the top
                 fixedPosition: true                               //options: true makes it stick(fixed position) on scroll
             });
         });

         </script>

I have the above code in my master page in a web application developed in vs2010. 我在vs2010开发的Web应用程序的母版页中有上面的代码。 It works fine in chrome, IE. 它在chrome,IE中工作正常。 but does not work at all in mozilla firefox. 但在mozilla firefox中根本不起作用。 What could be causing this problem? 是什么导致此问题? i've enabled javascript in firefox's setting tab. 我已经在Firefox的“设置”标签中启用了javascript。 Plz do help. 请帮忙。

Thankssss. 谢谢

Your problem is that text/jscript is not the same as text/javascript. 您的问题是text / jscript与text / javascript不同。 You want the latter. 您想要后者。

我认为您应该使用type =“ text / javascript”而不是=“ =” text / jscript“

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM