You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
567 B
15 lines
567 B
/*点击左侧产品小图片切换大图*/
|
|
$(function(){
|
|
$(".pro_detail_left ul li img").livequery("click",function(){
|
|
var imgSrc = $(this).attr("src");
|
|
var i = imgSrc.lastIndexOf(".");
|
|
var unit = imgSrc.substring(i);
|
|
imgSrc = imgSrc.substring(0,i);
|
|
var imgSrc_small = imgSrc + ""+ unit;
|
|
var imgSrc_big = imgSrc + ""+ unit;
|
|
$("#bigImg").attr({"src": imgSrc_small ,"jqimg": imgSrc_big });
|
|
$("#thickImg").attr("href", imgSrc_big);
|
|
$(".pro_detail_left ul li").removeClass("on");
|
|
$(this).parent("li").addClass("on");
|
|
});
|
|
}); |