これはChrome、Firefox、特にSafariで断続的に発生します。 IEでは観測されていません。スライドショーは通常より上から上に表示されますが、期待どおりに機能します。ハードリフレッシュで頻繁に起こり、document.ready()のように見えます。jQueryサイクル()スライドショーで間欠的な位置合わせ問題が発生する
ページはこちらです: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;
}
誰もが前にこれを見たか、何かアドバイスはありますか?
画像がまだ読み込まれていない可能性がありますか?また、 'onclick = window.location'の代わりに'
'のようなあなたのサイクルにリンクを置くことができます目立つ狂気... –
JKirchartz
私の目障りな狂気は、位置に負担はありますか? ;) – jerrygarciuh
いいえ...ちょうどコメント:P ... btw、その隙間は、左側のサイドバーの最初の画像のサブナブと同じ高さです... – JKirchartz