我正在尝试使用以下代码在我的主页中实现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冲突的问题,但是我还是个新手,我不能让我的实际代码工作。
你能帮我修复我的代码吗?先谢谢你……
发布于 2012-06-28 23:56:18
我有完全相同的问题,经过研究,我发现
窗口$(
).load((){
应该是
函数$(
(){
我在这里找到了答案http://www.codingforums.com/showthread.php?t=253841
https://stackoverflow.com/questions/11073241
复制相似问题