這些按鈕是頂部的六個方形圖像。懸停圖像自動懸停?
http://wthdesign.net/test/rollover/services.html
代碼我使用:
$(document).ready(function() {
$('.originalImg,rollOverImg').hover(
function() {
$(this).next().stop().animate({left: '0'}, 500, function(){});
console.log("in");
},
function() {
$(this).next().stop().animate({left: '90px'}, 500, function(){});
console.log("out");
}
);
我的html:
<div class="slicesBoxesTop"><img class="originalImg" src="images/home.png" /><img class="rollOverImg" src="http://makingdesign.com.au/images/mickslice1.gif" width="90" height="90" /></div>
<div class="slicesBoxTop2"><img class="originalImg" src="images/home.png" /><img class="rollOverImg" src="http://makingdesign.com.au/images/paulslice2.gif" width="90" height="90" /></div>
<div class="sliceTop3"><img class="originalImg" src="images/home.png" /><img class="rollOverImg" src="http://makingdesign.com.au/images/mickslice2.gif" width="90" height="90" /></div>
<div class="sliceTop4"><img class="originalImg" src="images/home.png" /><img class="rollOverImg" src="http://makingdesign.com.au/images/paulslice3.gif" width="90" height="90" /></div>
<div class="sliceTopbox5"><img class="originalImg" src="images/home.png" /><img class="rollOverImg" src="http://makingdesign.com.au/images/mickslice3.gif" width="92" height="92" /></div>
出於某種原因,在盤旋的圖像自動卷展欄,即使我的光標仍。
謝謝完美的工作 –
歡迎..很高興它幫助.. :) – bipen