⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cobrand2.js

📁 apache windows下的一款好
💻 JS
字号:
//<!--//\include\js\cobrand\cobrand.js@@\main\59var QA="",motorQA="",QAFolder="",siteID="0",isCobranded=false,ssl_copartnerid,ebayDomain=".ebay";var servers=new Array();var thisPage=location.href.toLowerCase(),lastPage=document.referrer.toLowerCase();if(thisPage.indexOf("corp.ebay.com")!=-1&&thisPage.indexOf("?testurl")!=-1){thisPage=location.search.replace("?testurl=","");}if(thisPage.indexOf(".qa")!=-1){}if((thisPage.indexOf("https://")!=-1)||(thisPage.indexOf("scgi.")!=-1)){thisPage=thisPage+"?co_partnerid="+ssl_copartnerid+"&";var machine="https://scgi"+QA+".ebay.com/";var path="saw/pics/js/cobrand"+QAFolder+"Secure/";}else{var machine="http://include"+QA+".ebay.com/";var path="aw/pics/js/cobrand"+QAFolder+"/";}var CobrandSiteID=new Array("0","1","2","3","4","5","6","7","8","9");var cobrands=new Array("ebay","aol","aol","compuserve","digitalcity","go","icq","netscape","lycos","carpoint");var cobrandDomain=new Array(false,false,false,false,false,true,false,false,false,false);var ht=new Array("1","5","500","6","7","10","8","9","37","28");var CobrandSite=new Array(CobrandSiteID.length);var SiteLogic=new Array(CobrandSiteID.length);for(i=1;i<CobrandSiteID.length;i++){CobrandSite[i]=new Array("."+cobrands[i]+".","ht="+ht[i]+"&","s_partnerid="+ht[i]+"&","co_partnerid="+ht[i]+"&");}CobrandSite[0]=new Array(".ebaystores.","crs.ebay.com",".liveauctions.","arribada.","skippy.");CobrandSite[2][1]="ht=2&";function checkLastPage(){disbaleLastPage=false;for(h=1;h<CobrandSiteID.length;h++){if(lastPage.indexOf("."+cobrands[h]+".")!=-1&&lastPage.indexOf(".ebay")==-1){disbaleLastPage=true;}}return disbaleLastPage;}if(lastPage.indexOf("web.aol.com")!=-1||checkLastPage()){lastPage="";}function getException(SiteID,InputLogic,inThisPage,inLastPage){if(SiteID=="1"){OutputLogic="("+InputLogic+") && ( ((inThisPage.indexOf(\".com/aol/\")>0)&&(inThisPage.indexOf(\".aol.\")>0)) || (((inThisPage.indexOf(\".com/aol/\")==-1)&&(inThisPage.indexOf(\".aol.\")==-1))&&((inThisPage.indexOf(\"ht=5&\") > 0)||(inThisPage.indexOf(\"s_partnerid=5&\") > 0)||(inThisPage.indexOf(\"co_partnerid=5&\") > 0))) || ((inLastPage.indexOf(\".com/aol/\")>0)&&(inLastPage.indexOf(\".aol.\")>0)) || ((inLastPage.indexOf(\".com/aol/\")==-1)&&(inLastPage.indexOf(\".aol.\")==-1)&&(inThisPage.indexOf(\".aol.\")==-1)))";}else if(SiteID=="5"){OutputLogic="(("+InputLogic+") && (inThisPage.indexOf(\"ebaymotors/\") ==-1) && (inThisPage.indexOf(\"motors.\") ==-1))";}else if(SiteID=="9"){OutputLogic="(("+InputLogic+") && ( (inThisPage.indexOf(\"ebaymotors/\") > 0) || (inThisPage.indexOf(\"motors.\") > 0)  || ((inThisPage.indexOf(\"pages.\") ==-1) && (inThisPage.indexOf(\"www.ebay.com\") ==-1) && (inThisPage.indexOf(\"cgi\") ==-1)  && (inThisPage.indexOf(\"listings\") ==-1))))";}else{OutputLogic=InputLogic;}return OutputLogic;}function detectCobrand(inThisPage,inLastPage,type){var elseStatement="";var setSiteID="";for(s=0;s<CobrandSiteID.length;s++){SiteLogic[s]="";orStatement="";for(i=0;i<CobrandSite[s].length;i++){if((i==0)&&(type=="location")){var itpURL=inThisPage;var qInd=itpURL.indexOf("?");if(qInd!=-1)itpURL=itpURL.substring(0,qInd);var ilpURL=inLastPage;qInd=ilpURL.indexOf("?");if(qInd==-1)ilpURL=ilpURL.substring(0,qInd);var itpInd=itpURL.indexOf(CobrandSite[s][i]);var ilpInd=ilpURL.indexOf(CobrandSite[s][i]);SiteLogic[s]=SiteLogic[s]+orStatement+"("+itpInd+" > 0) || ("+ilpInd+" > 0)";}else{SiteLogic[s]=SiteLogic[s]+orStatement+"(inThisPage.indexOf(\""+CobrandSite[s][i]+"\") > 0) || (inLastPage.indexOf(\""+CobrandSite[s][i]+"\") > 0)";}orStatement=" || ";}SiteLogic[s]=getException(s,SiteLogic[s]);if(type=="location"){setSiteID=setSiteID+elseStatement+" if("+SiteLogic[s]+") {siteID =\""+CobrandSiteID[s]+"\"}";}else{setSiteID=setSiteID+elseStatement+" if("+SiteLogic[s]+") {isCobranded =\"true\"}";}elseStatement=" else";}if(type=="location"){eval(setSiteID);}else{checkCobrand=setSiteID;}}detectCobrand(thisPage,lastPage,"location");function ReadCookie(name){var allCookie,cookieVal,length,start,end;cookieVal="";name=name+"=";allCookie=document.cookie;length=allCookie.length;if(length>0){start=allCookie.indexOf(name,0);if(start!=-1){start+=name.length;end=allCookie.indexOf(";",start);if(end==-1){end=length;}cookieVal=unescape(allCookie.substring(start,end));}}return(cookieVal);}function WriteCookie(name,value,domain,path,expires,secure){var CookieVal,CookError;CookieVal=CookError="";if(name){CookieVal=CookieVal+escape(name)+"=";}if(value){CookieVal=CookieVal+escape(value);}if(domain){CookieVal=CookieVal+"; domain="+domain;}if(path){CookieVal=CookieVal+"; path="+path;}if(expires){CookieVal=CookieVal+"; expires="+expires.toGMTString();}if(secure){CookieVal=CookieVal+"; secure="+secure;}else{CookError=CookError+"Write failure";}document.cookie=CookieVal;}function DeleteCookie(name,domain,path){var expireDate=new Date(1);if(ReadCookie(name)){WriteCookie(name," ",domain,path,expireDate);}}var mbID="0";var pageName;if(!pageName)pageName="";if((pageName.toLowerCase()=="pageviewitem")||(pageName.toLowerCase()=="pageacceptbid")||(pageName.toLowerCase()=="pageautosviewitemforvehicle")||(pageName.toLowerCase()=="pagebinconfirm")||(pageName.toLowerCase()=="pagebincongrats")||(pageName.toLowerCase()=="pagemakebid")){if(lastPage.indexOf('techrepublic.com')>-1){siteID="0";document.write("<SCRIPT SRC=\""+machine+path+"mb/techrepublic.js\"></SCRIPT>");}else if(lastPage.indexOf('lego.com')>-1){siteID="0";document.write("<SCRIPT SRC=\""+machine+path+"mb/lego.js\"></SCRIPT>");}else if((lastPage.indexOf('tmichaels')>-1)||(lastPage.indexOf('smccarth')>-1)){siteID="0";document.write("<SCRIPT SRC=\""+machine+path+"mb/mb_test.js\"></SCRIPT>");}}if((siteID!="0")||(thisPage.indexOf("https://")!=-1)||(thisPage.indexOf("scgi.")!=-1)){document.write("<SCRIPT SRC=\""+machine+path+"cobrand_functions.js\"></SCRIPT>");var HeaderName=cobrands[siteID];if(siteID=="1"){HeaderName=cobrands[siteID]+"com";}}function writeHeader(){if(siteID!="0"){var autos="";if((((thisPage.indexOf("motors/")>0)||(thisPage.indexOf("motors.")>0))&&(thisPage.indexOf("ebayisapi.dll?signin&usingssl=1")==-1))){autos="autos.";}document.write("<SCRIPT SRC=\""+machine+path+"headers/top/"+autos+"header."+HeaderName+".js\"></SCRIPT>");}}function writeBrow(){document.write("<SCRIPT SRC=\""+machine+path+"headers/brow.js\"></SCRIPT>");}function writeATC(){var date=new Date();var ns=navigator.appName=="Netscape";if((ns&&(date.getYear()<103))||(!ns&&(date.getYear()<2003))){if(siteID!="4"){document.write("<SCRIPT SRC=\""+machine+path+"headers/ATC.js\"></SCRIPT>");}}}function writeFooter(){if(QA==""){if((siteID=="0")&&((thisPage.indexOf('/cgi.ebay.com/aw-cgi/ebayisapi.dll?viewitem&item')>-1)||(thisPage.indexOf('/cgi.ebay.com/aw-cgi/ebayisapi.dll?mfcisapicommand=viewitem&item')>-1))){document.links[3].href="http://pages.ebay.com/sitemap.html";if(document.forms.length>0){if((document.forms[0].action.indexOf(".ebay.com")<0)){var endedItem=1;for(i=0;i<document.forms[0].length;i++){if(document.forms[0].elements[i].name=="transactionid")endedItem++;if(document.forms[0].elements[i].value=="UnifiedCheckoutShippingDispatcher")endedItem++;}if(endedItem>=3){document.forms[0].action="http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll";for(i=0;i<document.forms[0].length;i++){if(document.forms[0].elements[i].type=="submit")document.forms[0].elements[i].value="Checkout";}}}}}}if(siteID!="0"){document.write("<SCRIPT SRC=\""+machine+path+"footers/footers."+HeaderName+".js\"></SCRIPT>");}}var brow=1;var atc=1;var cbc=1;// -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -