おはよう、
私はこのコードをsomewereからコピーしました
<script type="text/javascript">
$(function() {
setInterval("rotateImages()", 200);
});
function rotateImages() {
var oCurPhoto = $('#lb2Animate div.current');
var oNxtPhoto = oCurPhoto.next();
if (oNxtPhoto.length == 0)
oNxtPhoto = $('#lb2Animate div:first');
oCurPhoto.removeClass('current').addClass('previous');
oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 300,
function() {
oCurPhoto.removeClass('previous');
});
}
</script>
<style type="text/css">
#lb2Animate {
position:relative;
float:left;
height:126px;
width:131px;
margin-left: auto;
}
#lb2Animate div {
position:absolute;
z-index: 0;
}
#lb2Animate div.previous {
z-index: 1;
}
#lb2Animate div.current {
z-index: 2;
}
</style>
私がする必要があるのは、アニメーションからフェードインに移動することです。ここでアニメーションを変更する必要があります。
oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 300,
function() {
oCurPhoto.removeClass('previous');
});
jQueryにあまり詳しくない
ヘルプ
を事前に受けてもらえますか?良い一日