<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="tool_index" %>
<%@ Register Src="../usercontrol/TopNew.ascx" TagName="TopNew" TagPrefix="uc4" %>
<%@ Register Src="../usercontrol/NewArticle.ascx" TagName="NewArticle" TagPrefix="uc5" %>
<%@ Register Src="../usercontrol/bottom.ascx" TagName="bottom" TagPrefix="uc2" %>

<%@ Register Src="../usercontrol/top.ascx" TagName="top" TagPrefix="uc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title><%=si.SiteName %></title>
    <link href="favicon.ico" rel="icon" />
    <link href="favicon.ico" rel="shortcut icon" />
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta content="免费收录各类优秀网站的网站大全,实用网址批量提交等查询工具,站长查询,网站收录查询,站长工具!" name="description" />
    <meta content="网址批量自动提交,SEO免费提交,SEO免费自动提交工具,站长查询,网站收录查询,站长工具" name="keywords" />
    <link href="../files/index.css" type="text/css" rel="stylesheet" />
    <script src="../jquery-latest.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript" src="../files/index.js"></script>
    <script type="text/javascript" >
      var t_id = setInterval(animate,20);
var pos=0;
var dir=2;
var len=0;
function animate()
{
	var elem = document.getElementById('progress');
	if(elem != null) {
		if (pos==0) len += dir;
		if (len>40 || pos>200) pos += dir;
		if (pos>200) len -= dir;
		if (pos>200 && len==0) pos=0;
		elem.style.left = pos;
		elem.style.width = len;
	}
}
function remove_loading() {
	this.clearInterval(t_id);
	var targelem = document.getElementById('loader_container');
	targelem.style.display='none';
	windowstatus();
}
$().ready(function(){remove_loading();});
function windowstatus()
{

var yourwords = "★ ★感谢您使用本站的查询工具! ★ ★";
var speed = 500;
window.status=yourwords;
setTimeout("windowstatus()",speed);
}
     var _ss = null;
      function HLoading(tb,ss)
      {
         _ss=ss;
//         if(!checkDomain())
//         {
//            remove_loading();
//            return;
//         }
          var tbody = document.getElementById("tbody");
          if(tb==1)
          {
              t_id=setInterval(animate,20);
              var targelem = document.getElementById('loader_container');
	            targelem.style.display='';
	           
          }else
           {
             remove_loading();
            }
      }
      
      function checkDomain1(o)
      {
         if(!checkDomain(o))
         {
            remove_loading();
            return false;
         }else 
          {
            if(!checkUrl(o))
            {
               alert("请输入有效的域名！");
               remove_loading();
               return false;
            }else
             HLoading(1);
          }
      }
      
      function checkUrl(o)
        {  
           var s = document.getElementById(o).value;
            var f = false;
            var re= /^[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^\"\"])*$/gi;
            var re1  =/^[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/gi;
            if(re.test(s))
                f=true;
            if(re1.test(s))
                f=true;
            return f;
        }
      
      function checkDomain(b)
    {
	var enDomain = document.getElementById(b).value;//domainform.domain.value;
	var i;
	var ii;
	var aa;
	if(enDomain=="" || enDomain==" " || enDomain.length < 4) {
		alert("请您输入有效的域名！");
		//domainform.domain.focus();
		return false;
	}
  	
	var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-0123456789&.=+%/_:";
	var allValid = true;
	for (i = 0;  i < enDomain.length;  i++)
	{
		ch = enDomain.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
		if (ch == checkOK.charAt(j))
			break;
		if (j == checkOK.length)
		{
			allValid = false;
			break;
		}
	}
	
	if (!allValid){
		alert("请输入有效的域名或路径！");
		//domainform.domain.focus();
		return (false);
	}
    if(enDomain.length>0)
	{
       ii=enDomain.indexOf(".")
        if(ii==-1)
		{
			alert("有效的域名或路径中必须含有“.”和域名后缀！")
		//domainform.domain.focus();
			return false
        }
    }
  return true;	
}
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div id="div_head">
            <uc1:top ID="Top1" runat="server" />
        </div>
        <!-- 网站头部结束-->
        <div id="bodydiv">
            <div id="bodydiv_left">
                <div id="leftform">
                <uc4:TopNew ID="TopNew1" runat="server" />
                <div style="border-top:1px solid #eaeaea; margin-bottom:10px; margin-top:10px;"></div>
                <uc5:NewArticle ID="NewArticle1" runat="server" />  
                <div style="border-top:1px solid #eaeaea; margin-bottom:10px; margin-top:10px;"></div>
                </div>
                <div id="DIV4">
                   <li style="list-style:NONE; margin-left:10px;">
                      <script type="text/javascript"><!--
                        google_ad_client = "pub-4150954159465585";
                        /* 200x200, 创建于 08-11-17 */
                        google_ad_slot = "1013195741";
                        google_ad_width = 200;
                        google_ad_height = 200;
                        //-->
                        </script>
                        <script type="text/javascript"
                        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                    </script>
                  </li>
                </div>
                <div id="DIV5">
                </div>
                <div id="DIV6">
                    <hr color="#eaeaea" size="1">
                    <a href="http://tool.13sb.cn/#">推荐本站给您的朋友</a><br>
                    <a href="javascript:window.external.AddFavorite('http://tool.13sb.cn','实用网址批量提交工具');">
                        将本站放入收藏夹中</a></div>
            </div>
            <div id="bodydiv_right">
                <table cellspacing="0" cellpadding="10" width="100%" border="0">
                    <tbody>
                        <tr>
                            <td valign="top">
                                <table class="form_d" cellspacing="0" cellpadding="6" width="98%" bgcolor="#cccccc"border="0">
                                    <tbody>
                                        <tr bgcolor="#ffffff">
                                            <td align="middle" width="100%" bgcolor="#fafafa">
                                                网址:http://
                                              <asp:TextBox ID="q" class="form"  maxlength="256" size="30" name="q" Text="13sb.cn" runat="server"></asp:TextBox> 
                                                <asp:Button ID="s3" runat="server" class="form_d"  name="s" Text="搜索" OnClick="s3_Click"  /></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
      
                        </tr>
                       
                       <tr>
                            <td valign="top">
                              <div>
                                <span style="color:blue;font-size:12px; font-weight:bold;">搜录结果：</span>
                                <table id="tbList" class="searchTable"    style="width:100%;"cellpadding=5 cellspacing=0 border=0>
                                  <tr>
                                    <th style="width:55px">搜索引擎</th>
                                    <th><img src="images/icon_baidu.gif" alt="百度收录" /></th>
                                    <th><img src="images/icon_google.gif"alt="谷歌收录" /></th>
                                    <th><img src="images/icon_yahoo.gif"alt="雅虎收录" /></th>
                                    <th><img src="images/icon_sohu.gif"alt="SOSO收录" /></th>
                                    <th><img src="images/icon_yodao.gif"alt="有道收录" /></th>
                                    <th><img src="images/icon_live.gif"alt="Window Live收录" /></th>
                                  </tr>
                                <tbody id="tbody">
                                  <%--<tr>
                                    <td colspan=7 style="text-align:center;"><img src="images/loading.gif" /></td>
                                   </tr>--%>
                                  <tr>
                                    <td>收录情况</td>
                                    <td><span id="qBaidu" runat="server"></span></td>
                                    <td><span id="qGoogle" runat="server"></span></td>
                                    <td><span id="qYahoo" runat="server"></span></td>
                                    <td><span id="qSOSO" runat="server"></span></td>
                                    <td><span id="qYodao" runat="server"></span></td>
                                    <td><span id="qLive" runat="server"></span></td>
                                  </tr>
                                  <tr>
                                     <td>反向链接</td>
                                    <td><span id="lBaidu" runat="server"></span></td>
                                    <td><span id="lGoogle" runat="server"></span></td>
                                    <td><span id="lYahoo" runat="server"></span></td>
                                    <td><span id="lSOSO" runat="server"></span></td>
                                    <td><span id="lYodao" runat="server"></span></td>
                                    <td><span id="lLive" runat="server"></span></td>
                                  </tr>
                                  </tbody>
                                </table>
                              </div>
                              <div style="margin:10px;"></div>
                              
                              <%--<div id="ulTop" style="border:1px dashed #ececec; width:100%;margin-top:5px;" class="liDiv"  runat="server">
                                
                              </div>--%>  
                              
                            </td>
                        </tr>
                       <tr>
                            <td valign="top">
                              <div>
                                <span style="color:blue;font-size:12px; font-weight:bold;">其他工具：</span>
                                <li><a href="alexa.aspx" style="color:Red">alexa查询</a></li>
                                <li><a href="HtmlToJs.aspx" style="color:Red">html<-->JS转换</a></li>
                               
                              </div>
                              <div style="margin:10px;"></div>
                              <span style="color:blue; margin-top:20px;font-size:12px; font-weight:bold;">最新查询网址：</span>
                              <div id="Div1" style="border:1px dashed #ececec; width:100%;margin-top:5px;" class="liDiv"  runat="server"></div>  
                              
                            </td>
                        </tr>
                        <tr>
                          <td style="border-top:1px dashed #666666">
                           <div style="margin-top:20px; width:98%">
                             <script type="text/javascript"><!--
                                google_ad_client = "pub-4150954159465585";
                                /* 728x90, 创建于 08-10-20 */
                                google_ad_slot = "4760763834";
                                google_ad_width = 728;
                                google_ad_height = 90;
                                //-->
                                </script>
                                <script type="text/javascript"
                                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                              </script>
                           </div>
                          </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!--尾部-->
        <uc2:bottom ID="Bottom1" runat="server" />
        
        <DIV id="loader_container" align="center">
<DIV id=loader>
<DIV id="loaderdate" style="text-align:center;">数据正在载入中，请稍候 … </DIV>
<DIV style="text-align:center;" class="f30B">（同时查询人数过多，速度会比较慢）</DIV>
<DIV id=loader_bg><DIV id=progress style="left: 0px; top: 1px"></DIV></DIV>
<DIV id=cnezz_com style="text-align:center;"><a href="http://localhost/" class="alexarank">localhost</A></DIV>
</DIV>
</DIV>
    </form>
</body>
</html>
