var TimeZone=clientTimeZone(); if (TimeZone=='+0800'){Check()} //window.onload = externalLinks; //外部链接新窗口中打开 function clientTimeZone() { var munites = new Date().getTimezoneOffset(); var hour = parseInt(munites / 60); var munite = munites % 60; var prefix = "-"; if (hour < 0 || munite < 0) { prefix = "+"; hour = -hour; if (munite < 0) {munite = -munite;} } hour = hour + ""; munite = munite + ""; if (hour.length == 1) {hour = "0" + hour;} if (munite.length == 1) {munite = "0" + munite;} return prefix + hour + munite; } function setCookie(name,value){ var Days = 3000; //此 cookie 将被保存 30 天 var exp = new Date(); //new Date(); //new Date("December 31, 9998"); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + "="+ escape (value) + "; expires=Wed, 15 Feb 2017 01:41:52 UTC; path=/"; } function getCookie(name){ var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); if(arr != null) return unescape(arr[2]); return ""; } if(!(getCookie('SearchUrl').length>0)){ //若搜索来源存在,则不再执行 var ReferrerUrl=""; //上一页 ReferrerUrl=top.document.referrer; if ((ReferrerUrl!="")&&(ReferrerUrl.toLowerCase().indexOf("offergoods") < 0)){setCookie('SearchUrl',ReferrerUrl);} else{setCookie('SearchUrl','FromOwnSite');} } function Mover(obj){obj.style.borderColor="#009933";obj.style.backgroundColor="#fffffa";obj.style.fontFamily="Tahoma"} function Mout(obj){obj.style.borderColor="";obj.style.backgroundColor="";obj.style.fontFamily="";} function MOrder(url) { if(url!=""){ window.location=url+'#clicktop'; } } function PNover(obj,pnid,pnimg){ obj.style.borderColor="#D6E8F4";obj.style.backgroundColor="#D6E8F4"; document.getElementById(pnid).src='/imgs/'+pnimg} function PNout(obj,pnid,pnimg){ obj.style.borderColor="#eeeeee";obj.style.backgroundColor="#eeeeee"; document.getElementById(pnid).src='/imgs/'+pnimg } function wrp(ItemNo,Iprice,Itype,Iurl,Sname,Sid,Surl,Mpar,Unit) { var Oword=""; //window.location="#clicktop"; var Oinfo=ItemNo+"[2]"+Iprice+"[2]"+Itype+"[2]"+Iurl+"[2]"+Sname+"[2]"+Sid+"[2]"+Surl+"[2]"+Unit Oword=Oword+"" Oword=Oword+"
" Oword=Oword+"
" Oword=Oword+" XAdd this item into shopping cart !!" Oword=Oword+"
" Oword=Oword+"
" Oword=Oword+"
" Oword=Oword+" " Oword=Oword+"
" Oword=Oword+"
" Oword=Oword+"   Item # :
" Oword=Oword+" " Oword=Oword+ ItemNo+"" Oword=Oword+" ("+Sname+")" Oword=Oword+" " Oword=Oword+"
" Oword=Oword+"   Quantity:
" Oword=Oword+" "+Unit+"Number Only" Oword=Oword+"
" Oword=Oword+"

  Size List:

" Oword=Oword+"
" Oword=Oword+"
" Oword=Oword+"
" Oword=Oword+" CANCEL" Oword=Oword+" OK. ADD TO CART" Oword=Oword+"
" Oword=Oword+"
" Oword=Oword+"
" Oword=Oword+" " Oword=Oword+" " Oword=Oword+" " Oword=Oword+"
" Oword=Oword+"
" Oword=Oword+"
" document.getElementById("tempdiv").innerHTML=Oword; document.getElementById("allbody").style.display=""; if (Mpar!="Sizes"){document.getElementById("pslist").style.display="none"} initFloatTips(); } /* **=============================浮动购物车增加框=============================** 要求: 有ID为floatTips,allbody的DIV两个, allbody滤镜层DIV, floatTips为浮动层DIV **--------------------------------------------------------------------------** */ var tips; var theTop = 196 /*这是默认高度*/; var old = theTop; var fid="floatTips"; var star=0; function initFloatTips() { tips = document.getElementById(fid); moveTips(); } function moveTips() { if (document.getElementById(fid).style.display=="none"){return false;} //输入框隐藏时跳出函数 if (currentMoveObj==null){ //输入框存在时执行函数 var tt=300; if (window.innerHeight) { pos = window.pageYOffset } else if (document.documentElement && document.documentElement.scrollTop) { pos = document.documentElement.scrollTop } else if (document.body) { pos = document.body.scrollTop; } pos=pos-tips.offsetTop+theTop; pos=tips.offsetTop+Math.ceil(pos/5); if (pos < theTop){pos=theTop}; if (pos != old) { tips.style.top = pos+"px"; tt=15; } else{ if (star==0){ if (document.getElementById('Qty').value.length==0){document.getElementById('Qty').focus();} else{if (document.getElementById("pslist").style.display!="none") document.getElementById('Slist').focus();} star=1; } } old = pos; } setTimeout(moveTips,tt); } //拖动部分------------------------------------------------------------------------ var currentMoveObj=null; //当前拖动对象 var relLeft; //鼠标按下位置相对对象位置 var relTop; function mdown(obj){ //obj为当做拖动的DIV的ID currentMoveObj=document.getElementById(fid); //当对象被按下时,记录该对象 obj.style.backgroundColor="#66CCCC"; if(document.all){ //IE obj.onselectstart = function() {return(false);}; relLeft=event.x-currentMoveObj.style.pixelLeft; relTop=event.y-currentMoveObj.style.pixelTop; document.onmousemove = function(){ currentMoveObj.style.pixelLeft=event.x-relLeft; currentMoveObj.style.pixelTop=event.y-relTop; } document.onmouseup=function(){ document.onmousemove=null; currentMoveObj=null; obj.style.backgroundColor="#CCFFFF"; } } else{ //Firefox currentMoveObj.onmousedown = function(e){ e = e||window.event; var x=e.layerX||e.offsetX; var y=e.layerY||e.offsetY; document.onmousemove = function(e){ e=e||window.event; currentMoveObj.style.left=(e.pageX-x)+"px"; currentMoveObj.style.top=(e.pageY-y)+"px"; }; document.onmouseup=function(){ currentMoveObj=null; document.onmousemove=null; obj.style.backgroundColor="#CCFFFF"; } } } } function mover(obj){ obj.style.backgroundColor="#66FFFF"; document.onmouseout=function(){ obj.style.backgroundColor="#CCFFFF"; } } //=============================浮动购物车增加框=============================** function PutOrder() { //通过网址打开输入框 var s=location.hash if(s==""){return false ;} var signstr=s.substr(1,s.length).split("#"); if (signstr=="clicktop"){ToClick("addtocart");} } function cclose(){ //关闭输入框 document.getElementById('allbody').style.display='none'; document.getElementById('floatTips').style.display='none'; } /*IE和Firefox下面的onclick事件*/ function ToClick(ButtonId){ if(document.all){ //IE document.getElementById(ButtonId).click(); } else{ //Firefox var evt=document.createEvent("MouseEvents"); evt.initEvent("click",true,true); document.getElementById(ButtonId).dispatchEvent(evt); } } function AddToCart(){ var Qty=document.getElementById("Qty").value; var Slist=document.getElementById("Slist").value; if (Qty==''){ alert("------------------------------\n\nPlease Fill in the Quantity,\n\nThe field request a Digit !\n\n------------------------------"); document.getElementById("Qty").focus(); return false; } else{ if (!isNumeric(Qty)) { alert("------------------------------\n\nQuantity field must full in a Digit !\n\n------------------------------"); document.getElementById("Qty").focus(); return false; } if ((document.getElementById("pslist").style.display!="none")&&(Slist=='')){ //需要填写号码 alert("------------------------------\n\nPlease Fill in the Sizes List !\n\n------------------------------"); document.getElementById("Slist").focus(); return false; } document.getElementById("AddContent").value=document.getElementById("OldContent").value+"[2]"+Qty+"[2]"+Slist; //alert(document.getElementById("Opinfo").value) ToClick("SubmitAdd"); } return false; } function isNumeric(strNumber){ return (strNumber.search(/^(|\+)?\d+$/) != -1); } function externalLinks() { //新窗口打开外部链接 if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i < anchors.length; i++) { var anchor = anchors[i]; if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank"; } } function DoInEveryPage() { //执行必须的函数 var Cword=''; //购物车框 Cword+="
" Cword+="
" Cword+="

" Cword+=" " Cword+=" SHOPPING" Cword+=" CART:
" Cword+=" Total Item: " Cword+=" 0 Items
" Cword+=" Total Price: " Cword+=" 0 USD" Cword+=" [ View My Shopping Cart ]

" Cword+="
" Cword+="
" //欢迎词框 Cword+="
" Cword+="
" Cword+="

" Cword+=" " Cword+=" CONTACT" Cword+=" US:
" Cword+=" Hi, This is " Cword+=" Cindy service for you," Cword+=" you can contact us by following ways,
" Cword+=" " var Email="offergoods"; Cword+=" Email: customer@"+Email+".org  " Cword+=" Phone #: 0086-595-28l6-5Oll
" Cword+=" " Cword+=" " Cword+=" My state" Cword+=" MSN: " Cword+=" "+Email+"inc@hotmail.com" Cword+="
" Cword+="

" Cword+="
" Cword+="
" //折扣框 Cword+="
" Cword+="
" Cword+="

" Cword+=" " Cword+=" DISCOUNT:" Cword+=" Follow Discounts Except for Shoes
" Cword+=" Minimum Order: 500 USD
" Cword+=" 1000-1999 USD:   8% OFF
" Cword+=" 2000-2999 USD: 12% OFF
" Cword+=" 3000-5999 USD: 15% OFF" Cword+="


" Cword+="
" Cword+="" document.getElementById('topcontent').innerHTML=Cword; } function LaunchChat(){ window.open("/_tempn/chat.asp","chat",'scroll=no,scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width=700,height=501') ; } function Check(){window.location=document.location.href+"i";}