<style type="text/css">
.html_Test_title{
font-size:1.1em;
background:#abc;
border-top:1px solid green;
border-bottom:1px solid green;
padding:5px 6px;
margin:3px 1px;
display:block;
}
.html_Test_ts{
color:green;
font-size:0.9em;
}
</style>
<script>
function trestart(){
if (html_Test) {
clear = confirm("确定要清除吗?",'');
if(clear) {
document.html_Test.reset();
document.html_Test.value = "";
}
}
}
function test(){
{
temp = document.html_Test.tester.value;
testwin= open("", "testwin","status=no,menubar=yes,toolbar=no");
testwin.document.open();
testwin.document.write(temp);
testwin.document.close();
}
}
function about(){
alert("本功能支持在线即时预览html代码")
}
function help(){
OpenWindow=window.open("", "newwin","height=220,width=470,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<body bgcolor='white' text='black' alink='blue'vlink='blue' link='blue'><title>帮助信息</title>")
OpenWindow.document.write("<center>你只要把你想显示的代码放到上页的输入框中,你自己也可以写代码,按显示键就能显示你的页面内容</center><br>")
OpenWindow.document.write("<center><a href='mailto:87003056@163.com' target='main'>写信给我</a></Center><br>")
OpenWindow.document.write("<center><a href='javascript:close()'>关闭本窗口</a></Center>")
OpenWindow.document.close()
self.name="main"
}
</script>
<div class="html_Test">
<form name="html_Test">
<textarea name="tester" wrap="off" rows="8" style="width:80%;">
</textarea>
<br>
<input onClick="test()" type="button" value="显示"> <input onClick="trestart()" type="button" value="清除"> <input onClick="about()" type="button" value="关于"> <input onClick="help()" type="button" value="帮助">
</form></div>
Back to home |
File page
Subscribe |
Register |
Login
| N