繁体   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>

我在vs2010开发的Web应用程序的母版页中有上面的代码。 它在chrome,IE中工作正常。 但在mozilla firefox中根本不起作用。 是什么导致此问题? 我已经在Firefox的“设置”标签中启用了javascript。 请帮忙。

谢谢

您的问题是text / jscript与text / javascript不同。 您想要后者。

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

暂无
暂无

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

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