<?php header("Content-Type:text/html; charset=UTF-8");
error_reporting(E_ALL & ~E_NOTICE);
$d = $_SERVER['QUERY_STRING'];?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<title>HTML/JS转换工具 - 站长社站长工具</title>
<meta name="keywords" content="HTML/JS转换工具,外链工具" />
<meta name="description" content="可以把html内容转换成js输出，也可以把JS内容转成HTML输出。" />
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet" />
<link type="text/css" href="css/main.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<?php include('topnav.php');?>

<div class="container" style="margin-top: 68px;">
<?php include("main_header.php");?>
	<div class="row" style="margin-top: 28px;">
		<div class="col-md-9">
			<div class="panel panel-tianyu">
				<header class="panel-heading">
					<span class="glyphicon glyphicon-link"></span><strong>HTML/JS转换工具</strong>
				</header>
				<div class="panel-body">
					<div class="box">
            <div id="c">
                <div class="box1" style="text-align:center;">
                    <script src="images/globals.js?ver=20100621" type="text/javascript"></script><script src="js/Html_JS.js" type="text/javascript"></script>
                    <div class="info1">
                        <div class="Gbtop">
                            <div style="padding:5px;">
                                <div class="WSIn">
                                    <div class="WSTitle">
                                        请将
                                        <strong>
                                            Html
                                        </strong>
                                        源代码拷贝到下面表单中:
                                    </div>
                                    <div class="WSt">
                                        <textarea id="osource" style=" border:1px solid #c5e2f2; width:800px; height:150px; overflow:visible;" onfocus="change()" onkeyup="change()"></textarea>
                                    </div>
                                    <span class="WSTitle">
                                        下面表单中是相应的
                                        <strong>
                                            Js
                                        </strong>
                                        代码:
                                    </span>
                                    <br />
                                    <span class="WSt">
                                        <textarea id="oresult2" style=" border:1px solid #c5e2f2; width:800px; height:150px; overflow:visible;">
                                        </textarea>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="Gbtop">
                            <div style="padding:5px;">
                                <div class="WSIn">
                                    <span class="WSTitle">
                                        请将
                                        <strong>
                                            Js
                                        </strong>
                                        源代码拷贝到下面表单中:
                                    </span>
                                    <br />
                                    <span class="WSt">
                                        <textarea id="oresult" style=" border:1px solid #c5e2f2; width:800px; height:150px; overflow:visible;"
                                        onfocus="rechange()" onkeyup="rechange()">
                                        </textarea>
                                    </span>
                                    <span class="WSTitle">
                                        下面表单中是相应的
                                        <strong>
                                            Html
                                        </strong>
                                        代码:
                                    </span>
                                    <br />
                                    <span class="WSt">
                                        <textarea id="re" style=" border:1px solid #c5e2f2; width:800px; height:150px; overflow:visible;">
                                        </textarea>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div style="width:100%">
                        <div id="detail" class="info1">
                            <div id="result" class="div_whois">
                                <div class="t" style="display:none" id="seo_result">
                                </div>
                            </div>
                        </div>
                        <div style="float:right; width:40%; text-align:right; padding-top:9px;">
                        </div>
                    </div>
                </div>
            </div>
        </div>
				</div>
			</div>
		</div>
		<div class="col-md-3">
			<div class="panel panel-tianyu">
				<header class="panel-heading">
					<span class="glyphicon glyphicon-wrench"></span>工具介绍
				</header>
				<div class="panel-body">
						<p>可以把html内容转换成js输出，反之也可以转换回来</p>
				</div>
			</div>
		</div>
		<div class="col-md-3">
			<div class="panel panel-tianyu">
				<header class="panel-heading">
					<span class="glyphicon glyphicon-save"></span>下载源码
				</header>
				<div class="panel-body">
						<p>本工具源码提供下载</p>
						<a href="http://www.zzs1.com/code/" class="btn btn-tianyu" target="_blank"><span class="glyphicon glyphicon-save">下载地址</a>
				</div>
			</div>
		</div>
	</div>
</div>
<?php include('footer.php');?>
<script>
function cgurl(obj,url){
	obj.href=url;
}

function ck_dn(str)
{
        if(!/^([\w-]+\.)+((com)|(net)|(org)|(gov\.cn)|(info)|(cc)|(me)|(asia)|(com\.cn)|(net\.cn)|(org\.cn)|(name)|(biz)|(tv)|(cn)|(la))$/.test(str)){
            return false;
        }else{
		    return true;	
		}

}
$(document).ready(function(){
	$("#linkbtn").click(function(){
			$domain = $("#dn").val();
			if($domain==""){
			   alert("请输入域名");
			}else if(ck_dn($domain)){
				$("#linkshow").show();
				$("#linklist").html("<iframe src='data.php?p=1&dn="+$domain+"' height='100%' width='100%' marginwidth='0' marginheight='0' hspace='0' vspace='0' frameborder='0' scrolling='no'></iframe>");
			}else{
				alert("请输入正确的域名");
			}
	});
});
</script>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1361866808579755" charset="utf-8"></script>
</body>
</html>