0

当我将以下链接放在我的页面下方时,我的页面消失了,只剩下 bgcolor 我包括 JQuery.noConflict 因为我的滑块和灯箱没有一起工作,我被告知我将在脚本灯箱、原型或 jquery 上用 jQuery 替换 $我确实知道并且我是否也将“someid”替换为我是新手的确切内容

<script type="text/javascript" src="js/lightbox.js/"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
 <script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="js/jquery.js/"></script>

<script type="text/javascript">
JQuery.noConflict();
JQuery(document).ready(function(){
JQuery("div").hide();
});

$('someid').style.display = 'none'
</script>
<script type="text/javascript" src="js/easySlider1.5.js/"></script>
4

1 回答 1

1

js包含顺序应该

// jquery shold include first
<script type="text/javascript" src="js/jquery.js/"></script>

<script type="text/javascript" src="js/lightbox.js/"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
于 2012-05-22T17:06:44.483 回答