jquery使用live綁定hover(out,over).

$(".images_list li").live({
	   mouseenter:
	   function()
	   {
		$(this).parent().children("a").hide();
		$(this).children('a').show();
		$(this).css({'border':"1px solid red"});
	   },
	   mouseleave:
	   function()
	   {
	     $(this).children('a').hide();
		$(this).css({'border':"none"});
	   }
	});

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章