Tag-Archive for “ effect ”
20
Jul
Post on 10:10, July 20, 2009, by Sue Zhou

Instead of using onmouseover, onmouseout in each image, use the following function.

Remember to name the images in specific format.

$("img.rollover").hover(
	function() { $(this).attr("src", $(this).attr("src").split(".").join("_over.")); },
	function() { $(this).attr("src", $(this).attr("src").split("_over.").join(".")); }
);
Category: 分享  Tags: ,  Leave a Comment