$(".bstar1").mouseenter(function(e){$('.bstar1').prop('src','images/star.png');});就是指標在哪裡,黃星星就會補滿bstar是灰的star是黃的我越寫越不對,這樣好像不通?怎麼寫才對?_____________________________更新我寫這樣$('.rate_bstar').hover(function(){$(this).prevAll().prop('src','images/star.png');$(this).prop('src','images/star.png');$(this).nextAll().prop('src','images/bstar.png');},function(){$(this).prevAll().prop('src','images/bstar.png');$(this).prop('src','images/bstar.png');$(this).nextAll().prop('src','images/bstar.png');});發現這樣可以,但我點擊後我想讓他停在那個狀態,不要消失
SMILET
回首忆惘然
相关分类