Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 加载页面无法正常工作_Javascript_Jquery_Css - Fatal编程技术网

Javascript 加载页面无法正常工作

Javascript 加载页面无法正常工作,javascript,jquery,css,Javascript,Jquery,Css,我有这个标记: <div id="logo" style="text-align:center;"> <p>AXIS'14</p> <a id="enter" onclick="EnterSite()">Enter Website</a><br> </div> <div id="content"> //content here </div> 轴心国'14 您可

我有这个标记:

<div id="logo" style="text-align:center;">
    <p>AXIS'14</p>
    <a id="enter" onclick="EnterSite()">Enter Website</a><br>
</div>

<div id="content">
  //content here
</div>  

轴心国'14


您可能应该:

<script>
        $(window).load(function(){
         // executes when complete page is fully loaded, including all frames, objects and images
         $("#enter").fadeIn(1000);
        });
</script>  

<script type="text/javascript">
        $(document).ready(function () {
            $("#enter").click(function () {
                $("#content").fadeIn(1000);
            });
        });
            $(document).ready(function(){
                $("#enter").click(function () {
                $( '#sg-panel-container').gridgallery();
            });
        });
</script>

$(窗口)。加载(函数(){
//在完全加载整个页面(包括所有帧、对象和图像)时执行
$(“#输入”).fadeIn(1000);
});
$(文档).ready(函数(){
$(“#输入”)。单击(函数(){
$(“#内容”).fadeIn(1000);
});
});
$(文档).ready(函数(){
$(“#输入”)。单击(函数(){
$(“#sg面板容器”).gridgallery();
});
});

您可能应该:

<script>
        $(window).load(function(){
         // executes when complete page is fully loaded, including all frames, objects and images
         $("#enter").fadeIn(1000);
        });
</script>  

<script type="text/javascript">
        $(document).ready(function () {
            $("#enter").click(function () {
                $("#content").fadeIn(1000);
            });
        });
            $(document).ready(function(){
                $("#enter").click(function () {
                $( '#sg-panel-container').gridgallery();
            });
        });
</script>

$(窗口)。加载(函数(){
//在完全加载整个页面(包括所有帧、对象和图像)时执行
$(“#输入”).fadeIn(1000);
});
$(文档).ready(函数(){
$(“#输入”)。单击(函数(){
$(“#内容”).fadeIn(1000);
});
});
$(文档).ready(函数(){
$(“#输入”)。单击(函数(){
$(“#sg面板容器”).gridgallery();
});
});

grid gallery不起作用的解决方案可能存在重复,那么您为什么接受这个答案?因为我所问的答案是正确的。在这个问题中没有关于网格的任何内容。网格库不起作用的解决方案可能会重复。那么你为什么接受这个答案?因为我所问的答案是正确的。在那个问题上根本没有网格。