// div.menu-first > ul > li").hover( function() { jQuery("div[class^=FrontProductsCategory_show01-d1] .menu-second").hide(); jQuery(this).children("div.menu-second").show(); jQuery(this).children("div.menu-second > a.menu-text1").addClass("current"); }, function() { jQuery("div[class^=FrontProductsCategory_show01-d1] .menu-second").hide(); jQuery(this).children("div.menu-second > a.menu-text1").removeClass("current"); }); } jQuery(document).ready(FrontProductsCategory_show01['FrontProductsCategory_show01-1482484487731_init']); //]]>
当前位置:首页项目案例 > 永乐网电影学院
// jQuery(document).ready(function (){ var productIshave="false"; FrontProducts_detail02_images(); function selectSpec(thisObj){ var detail02 = jQuery("#FrontProducts_detail02-1482485050817"); var productImgs = detail02.find("div.picarea div.imgbox ul li"); var thisoption=jQuery(thisObj).find("option:selected"); var specValueId =thisoption.val(); thisoption.parents("li:first").children("input[type='hidden']").val(specValueId); if(productIshave=="true"){ jQuery("#FrontProducts_detail02-1482485050817_buyBtn").show(); }else{ jQuery("#FrontProducts_detail02-1482485050817_lackBtn").hide(); } FrontProducts_detail02_images(); var productSpecs =thisoption.parents("div.choose-property"); var noChooseSpec = productSpecs.find("input[type='hidden'][name^='spec'][value='']"); var productItem = productSpecs.children("ul.specifications"); //productItem.hide(); if(noChooseSpec.length == 0){ jQuery.ajax( { url :"/comp-FrontProductsItem_detailBySpecJson01-001", type :'post', dataType :'json', data :jQuery(thisObj).parents("form:first").serialize(), timeout :5000, cache :false, async: true, error : function() { }, success : function(json) { if(typeof(json.id) == "undefined"){ productSpecs.children("input[type='hidden'][name='productItemId']").val(""); productItem.hide(); }else{ productSpecs.children("input[type='hidden'][name='productItemId']").val(json.id); productItem.children("li.item").children("span:last").text(json.itemCode); productItem.children("li.price").children("span:last").text(json.finalPrice.toFixed(2)); productItem.children("li.weight").children("span:last").text(json.weight.toFixed(2)); productItem.show(); } } }); }else{ productSpecs.children("input[type='hidden'][name='productItemId']").val(""); productItem.hide(); } } jQuery("li.user-choose div.choose-property select.specValue").change(function (){ selectSpec(this); // var selectSpecValueId=jQuery(this).find("option:selected").val(); // jQuery("img.specValue").each(function(){ // var specValueId = jQuery(this).metadata().specValueId; // if(selectSpecValueId==specValueId){ // jQuery(this).siblings("img").removeClass("click"); // jQuery(this).addClass("click"); // } // }); }); jQuery("li.user-choose div.choose-property img.specValue").click(function (){ var specValueId = jQuery(this).metadata().specValueId; var selectedObj=jQuery(this).parents("li:first").find("option[value='"+specValueId+"']").attr("selected","selected"); selectSpec(jQuery(this).parents("li:first").find("select.specValue")[0]); // jQuery(this).siblings("img").removeClass("click"); // jQuery(this).addClass("click"); }); }); function FrontProducts_detail02_images(){ jQuery.ajax( { url :"/comp-FrontProductsItem_imagesBySpecJson01-001", type :'post', dataType :'json', data :jQuery("#FrontProducts_detail02-1482485050817 form").serialize(), timeout :5000, cache :false, async: true, error : function() { }, success : function(json) { var imagesLi = jQuery("#FrontProducts_detail02-1482485050817 div.picarea div.imgbox ul li"); imagesLi.empty(); for(var i=0;i"); } var firstImg=imagesLi.find("a:first img"); if(firstImg.length>0){ changeBigImg(firstImg.get(0)); } FrontProducts_detail02_initScrollCount(); if(jQuery("#FrontProducts_detail02-1482485050817_key10ScrollDiv").length>0){ FrontProducts_detail02_initScroll(); } } }); } function FrontProducts_detail02_initScrollCount(){ var maxImageNum =jQuery("#FrontProducts_detail02-1482485050817_key10Picarea").innerWidth() / jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a").outerWidth(true); jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a").hide(); jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a").each(function (i){ if(i < maxImageNum - 1){ jQuery(this).show(); } }); } function FrontProducts_detail02_recalculated(){ var j=0; var maxImageNum =jQuery("#FrontProducts_detail02-1482485050817_key10Picarea").innerWidth() / jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a").outerWidth(true); jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a").each(function (i){ if(jQuery(this).is(":visible")){ if(maxImageNum a:first").is(":visible")){ jQuery("#FrontProducts_detail02-1482485050817_clickimgL").attr("src",preNOImg); }else{ jQuery("#FrontProducts_detail02-1482485050817_clickimgL").attr("src",preCurrentImg); } if(jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a:last").is(":visible")){ jQuery("#FrontProducts_detail02-1482485050817_clickimgR").attr("src",nextNOImg); }else{ jQuery("#FrontProducts_detail02-1482485050817_clickimgR").attr("src",nextCurrentImg); } jQuery("#FrontProducts_detail02-1482485050817_clickimgR").parent().show(); jQuery("#FrontProducts_detail02-1482485050817_clickimgL").parent().show(); } function FrontProducts_detail02_scroll(divId, px){ if(px>0 && jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a:first").is(":hidden")){ var a = jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a:visible:first").prevAll("a:first"); var b = jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a:visible:last"); jQuery(a).show("normal",FrontProducts_detail02_initScroll); jQuery(b).hide(); }else if(px<0 && jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a:last").is(":hidden")){ var a = jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a:visible:last").nextAll("a:first"); var b = jQuery("#FrontProducts_detail02-1482485050817_key10imglist > a:visible:first"); jQuery(a).show(); jQuery(b).hide("normal",FrontProducts_detail02_initScroll); } FrontProducts_detail02_recalculated(); } function changeBigImg(thisobj){ var imgUrl=jQuery(thisobj).attr("src"); var bigImgUrlObj=jQuery("#FrontProducts_detail02-1482485050817_bigImgUrl"); jQuery("#FrontProducts_detail02-1482485050817_bigImg").attr("src",imgUrl); jQuery("#FrontProducts_detail02-1482485050817_bigImg").attr("jqimg",imgUrl); if(bigImgUrlObj.length>0){ if(bigImgUrlObj.hasClass("bigforImg")){ bigImgUrlObj.attr("href",imgUrl); } } }
//0 && showimage.attr("src")==""){ showimage.attr("src","/images/common/noimage.jpg") ; } FrontProducts_detail02.init_addHitnumber('/FrontProducts.do?method=addHitnumber','223','FrontProducts_detail02-1482485050817_showhitnumber'); if (jQuery("#FrontProducts_detail02-1482485050817_isjqzoom").hasClass("jqzoom") ){ jQuery(".jqzoom").jqueryzoom({xzoom: 300,yzoom: 300,offset: 10,position: "right",preload: 1,lens:1}); } FrontProducts_detail02.defaultTab("FrontProducts_detail02-1482485050817"); FrontProducts_detail02.changeTab("FrontProducts_detail02-1482485050817"); perpareChangeLink(); if(jQuery("#FrontProducts_detail02-1482485050817 #btnpanorama").length >0){ FrontProducts.createModalDialog("panoramaModalDialog",765,640,i18n_FrontProducts_detail02_panorama); jQuery("#btnpanorama").click(function(){ var url=jQuery("#FrontProducts_detail02-1482485050817_panoramaUrl").val() FrontProducts.openModalDialog("panoramaModalDialog",url); }); } } function perpareChangeLink(){ } jQuery(document).ready(FrontProducts_detail02['FrontProducts_detail02-1482485050817_init']); //]]>
var visittrack_siteId ='NEWZADD2016082900136'; var visittrack_url='http://ztouch5.gather.shushang-z.cn/trace.do';VisitTrack.visittrack_log( visittrack_siteId, visittrack_url);