サムネイルの上にマウスを置いたときにDIVをアニメーション化しようとしています。私はそのRELでDIVをアニメーション化するためにRELでイメージIDを使用できると思った。何らかの理由で、私がdiv RELに警告しようとするとOBJECT OBJECTになります。ここに私が使用したものがあります:jQuery - divのimg IDを使用するREL
$(function(){
var screenCenter = $(window).width()/2;
var projectID = this.id;
$(document).mousemove(function(e){
if (e.pageX < screenCenter) {
}
else if (e.pageX > screenCenter) {
$("#portfolio_thumbs img").hover(function() {
//$("div[rel=" + projectID + "]").animate({left:'100px'},{queue:false,duration:300});
alert($('div[rel=" + projectID + "]'))
});
}
$('#portfolio_thumbs img').mouseout(function() {
$(".project_description").animate({left:'-440px'},{queue:false,duration:300});
});
});
私は間違っていますか?
あなたの問題は何ですか?何かエラーがありますか?そうでない場合、何が起こっていますか? – 11684
とようこそ! – 11684