//这里是友价商城系统全局JS, //不受模板影响, //就是任何模板都可以或可能调用的一些通用样式,写在这里 //www.yj99.cn,请勿修改 function globottomjd(x){ document.getElementById("globottomdm"+x).className="dm dm1"; document.getElementById("globottom"+x).src="/m/img/globottom"+x+"1.png"; } function isEmail(str){//判断邮箱 var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/; return reg.test(str); } function tjwait(){ document.getElementById("tjbtn").style.display="none"; document.getElementById("tjing").style.display=""; } function gourl(x){ location.href=x; } //全选 function xuan(){ c2=document.getElementsByName("C2"); c=document.getElementsByName("C1"); if(c2[0].checked){ for(i=0;i0||y>0){var run="gotoTop("+ acceleration+", "+ stime+")";window.setTimeout(run,stime);}} function sertjonc(x,y){ //x表示当前ID,y表示所有的 document.body.scrollTop = 0; s=document.getElementById("sertj"+x); if(s.style.display==""){s.style.display="none";}else{s.style.display="";} for(i=1;i<=y;i++){ if(x!=i){document.getElementById("sertj"+i).style.display="none";} } } function qqtang(x,y,z){ str="
QQ:"+x+""; str=str+"直接对话"; str=str+"复制QQ"; if(y!="" && y!=undefined){ str=str+"
微信:"+y+""; str=str+"复制微信"; str=str+"
"; } str=str+"
声明:该QQ号是用户提供,平台不确保其真实性,涉及资金交易时,请核实所要购买的商品与该QQ号是否有关联(谨防QQ无效、冒用等情况)
"; layer.open({ content: str }); } //复制 function copyToClipboard(elementId) { var aux = document.createElement("input"); aux.setAttribute("value", document.getElementById(elementId).innerHTML); document.body.appendChild(aux); aux.select(); document.execCommand("copy"); document.body.removeChild(aux); layerts("已复制"); } //首页弹窗 function setIndexCookie() { $.get("indexcookie.php.htm"/*tpa=http://www.08zs.com/m/tem/indexcookie.php*/,{admin:2},function(result){ }); }; function getIndexCookie () { $.get("indexcookie.php.htm"/*tpa=http://www.08zs.com/m/tem/indexcookie.php*/,{admin:1},function(result){ if(result=="no"){ indextang(); setIndexCookie(); } }); } function indextangclo(){ layer.closeAll(); } //下拉 function glotopxiala(){ d=document.getElementById("glotopzhezhao"); if(d.style.display=="block"){ document.getElementById("glotopzhezhao").style.display="none"; document.getElementById("glotopxialam").style.display="none"; }else{ document.getElementById("glotopzhezhao").style.display="block"; document.getElementById("glotopxialam").style.display=""; } }