Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] js问题

[复制链接]
marine_xun 发表于 2013-5-26 16:38:31 | 显示全部楼层 |阅读模式
本帖最后由 marine_xun 于 2013-5-26 16:40 编辑

请问我下面这部分js哪里有问题 是鼠标效果,目前效果出不来!
  1. <script type="text/javascript">
  2. window.onload = function(){
  3.           var jsload = document.createElement("script");
  4.           jsload.src = "$_G['style']['styleimgdir']/index/jquery-1.4.4.min.js";
  5.           document.getElementsByTagName("head")[0].appendChild(jsload);
  6.           var isLoaded = false;
  7.                   jsload.onload = jsload.onreadystatechange = function(){
  8.                           if(isLoaded){
  9.                                 return;
  10.                           }else{
  11.         if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") {
  12.                                         isLoaded = true;
  13.                                        
  14.                        //这里添加其他js
  15.                        $.getScript("$_G['style']['styleimgdir']/index/common.js");
  16.                        $.getScript("$_G['style']['styleimgdir']/index/mop.js",function(){
  17.                                $(function() {  
  18.                               });
  19.                        });
  20.                        //延迟部分js加载
  21.                        setTimeout(function(){
  22.                                $.getScript("$_G['style']['styleimgdir']/index/jquery.mousewheel.js");
  23.                                $.getScript("$_G['style']['styleimgdir']/index/jquery.jscrollpane.min.js",function(){
  24.                                        $(function()
  25.                                                        {
  26.                                                            $('.scroll-pane').jScrollPane({showArrows: true});
  27.                                                        });
  28.                                });
  29.                        },1000);
  30.                        }
  31.                         }
  32.           };
  33. };
  34. </script>
复制代码
可爱的轩轩 发表于 2013-5-29 09:40:39 | 显示全部楼层
是不是冲突了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-10-4 19:23 , Processed in 0.117817 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表