【发布时间】:2012-06-28 23:56:17
【问题描述】:
我正在尝试使用此代码在我的主页中实现Orbit Slider:
<script type="text/javascript" src="resources/js/jquery.js"></script>
<script type="text/javascript" src="resources/js/jquery.simplemodal.js"></script>
<script type="text/javascript" src="resources/js/help_support.js"></script>
<script type="text/javascript" src="resources/js/terms_conditions.js"></script>
<script type="text/javascript" src="resources/js/privacy_policy.js"></script>
<script type="text/javascript" src="resources/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="resources/js/jquery.orbit-1.2.3.min.js"></script>
<!--[if IE]>
<style type="text/css">
.timer { display: none !important; }
div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
</style>
<![endif]-->
<script type="text/javascript">
$(window).load(function() {
$('#featured').orbit();
});
</script>
这可行,但如果我将以下代码添加到我想要显示 Google Adsense 广告的页面,滑块将停止在 Safari、Chrome 和 Firefox 中加载图像(出于某种原因,它在 Opera 中仍然有效)。
<div>
<script type="text/javascript">
<!--
google_ad_client = ad_client;
/* homepage_200x200_1 */
google_ad_slot = ad_slot;
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
我在这里和网上的this useful page 发现了很多关于 jQuery 冲突的问题,但我是 javascript 新手,无法让我的实际代码工作。
你能帮我修复我的代码吗? 提前谢谢你...
【问题讨论】:
-
这个脚本在做什么 这是 jquery min 文件吗?如果是,则删除以下脚本引用
-
我已经删除了 jquery-1.5.1.min.js,但没有任何变化:(
-
是否有任何javascript错误?在 Firefox 中查看错误控制台。
标签: javascript jquery adsense orbit