这在 Chrome、Firefox 中会间歇性发生,尤其是在 Safari 中。在IE中没有观察到。幻灯片显示从顶部比通常更远,但按预期运行。在硬刷新时更频繁地发生,使其看起来像 document.ready() 问题。
页面在这里: http: //privatecare.dreamhosters.com/
正确负载:
不正确的负载:
jQuery初始化:
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.cycle.all.latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#homeSlides').cycle({
fx: 'fade',
speed: 2500
});
});
</script>
HTML:
<div id="homeSlides">
<img src="/g/home/slide1.jpg" alt="Connecting You to Better Care" width="639" height="348" onclick='window.location="/why_choose_pca"' />
<img src="/g/home/slide2.jpg" width="639" height="348" alt="Updates on DOL’s Proposed Amendments to Companionship and Live-In Worker Regulations" border="0" onclick='window.location="/dol-issue-updates"' />
<img src="/g/home/slide3.jpg" alt="Promoting the Rights of Independent Caregivers and Registries Since 1977" width="639" height="348" onclick='window.location="/caregivers"' />
<img src="/g/home/slide4.jpg" alt="The Consumer-Directed Model Puts You in Control" width="639" height="348" onclick='window.location="/comparing_your_options"' />
<img src="/g/home/slide5.jpg" alt="Join us in Orlando October 10 – 12 for the PCA Annual Conference" width="639" height="348" onclick='window.location="/annual-conference"' />
</div>
CSS
#homeWrapper {
position:relative;
margin:0 auto;
width:951px;
background: url(../g/home_bg.jpg) no-repeat;
min-height:888px;
}
#homeSlides {
position:absolute;
left:290px;
top: 143px;
width:639px;
height:348px;
overflow:hidden;
cursor:pointer;
}
有人以前见过这个或有什么建议吗?