
﻿
lebi.chaxun.zzgongju={title:"站长工具",bindEvents:function(){var urls=["","http://tool.chinaz.com/Ranks/Default.aspx?PRAddress={v}","http://whois.chinaz.com/{v}","http://tool.chinaz.com/Tools/Robot.aspx?webUrl={v}","http://tool.chinaz.com/Tools/MetaCheck.aspx","http://tool.chinaz.com/Tools/PageCode.aspx","http://link.chinaz.com/?wd={v}","","http://alexa.chinaz.com/?domain={v}","http://tool.chinaz.com/Tools/Density.aspx"];$("#sel_gjc").change(function(){var sel=parseInt($(this).val());if(sel==9){$("#gjc").show();}else{$("#gjc").hide();}
switch(sel){case 0:;break;case 1:;$("#btnSubmit").show();$("#_btnSubmit").hide();break;case 2:;$("#btnSubmit").show();$("#_btnSubmit").hide();break;case 3:;$("#btnSubmit").show();$("#_btnSubmit").hide();break;case 4:$("#form_gjc").attr("action",urls[sel]);$("#txt").attr("name","MAddress");$("#btnSubmit").hide();$("#_btnSubmit").show();break;case 5:$("#form_gjc").attr("action",urls[sel]);$("#txt").attr("name","ctl00$Main$Address");$("#btnSubmit").hide();$("#_btnSubmit").show();break;case 6:$("#btnSubmit").show();$("#_btnSubmit").hide();break;case 8:;$("#btnSubmit").show();$("#_btnSubmit").hide();break;case 9:$("#form_gjc").attr("action",urls[sel]);$("#txt").attr("name","DAddress");$("#txt_gjc").attr("name","DKeyWords");$("#btnSubmit").hide();$("#_btnSubmit").show();break;}});$("#txt").keypress(function(e){e=e||window.event;if(e.keyCode==13){if($("#btnSubmit").is(":visible")){$("#btnSubmit").click();return false;}}});$("#btnSubmit").click(function(){var v=$.trim($("#txt").val()),w=$.trim($("#txt_gjc").val()),sel=parseInt($("#sel_gjc").val()),domain="";if(!v){alert("请输入域名/网址");$("#txt").focus();return false;}
var vs=v.split("."),vslen=vs.length;if(vslen>=2){domain=vs[vslen-2]+"."+vs[vslen-1];}
switch(sel){case 0:alert("请选择查询类型");break;case 1:window.open(urls[sel].replace("{v}",v));break;case 2:if(domain){window.open(urls[sel].replace("{v}",domain));}
break;case 3:window.open(urls[sel].replace("{v}",v));break;case 4:;break;case 5:;break;case 6:window.open(urls[sel].replace("{v}",v));break;case 8:window.open(urls[sel].replace("{v}",v));break;case 9:;break;}});$("#form_gjc").submit(function(){if(!$.trim($("#txt").val())){alert("请输入域名/网址");$("#txt").focus();return false;}});$("#form_shuolu").submit(function(){if(!$.trim($("#Site_Domain").val())){alert("请输入域名/网址");$("#Site_Domain").focus();return false;}});$("#form_fxlj").submit(function(){if(!$.trim($("#txt_fxlj").val())){alert("请输入域名/网址");$("#txt_fxlj").focus();return false;}});$("#form_wzjz").submit(function(){if(!$.trim($("#txt_wzjz").val())){alert("请输入域名/网址");$("#txt_wzjz").focus();return false;}});$("#right .txt_gjc").keyup(function(e){e=e||window.event;if(e.keyCode==13){$("#btnSubmit").click();}});},init:function(){this.bindEvents();lebi.chaxun.showTitle(this.title,false);}};lebi.chaxun.zzgongju.init();
