javascript
CODE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<title>Untitled Document</title>
<script LANGUAGE="JAVASCRIPT">
<!--
function rc() {//running code
w = 500; //窗口宽
h = 500; //窗口高
x = (screen.width - w) / 2; //屏幕宽度减去窗口宽度, 然后宽/2
y = (screen.height - h) / 2; //屏幕高度减去窗口高度, 然后高/2
var nw=window.open('','newwindow','location=1,width='+w+',height='+h+',top='+y+',bottom='+y+',left='+x+',right='+x);
//定义变量, 作用为打开新窗口, 并在新窗口写出文本域中的内容
nw.document.write(document.all.content.value); //写出文本域中的内容
}
//--> Script By shawl.qiu<shawl.qiugmail.com>
</script>
</head>
<body>
<form ACTION="" METHOD="post" NAME="formT" ID="formT">
<ttextarea NAME="content" COLS="60" ROWS="10" >Description
Use the ids property to specify the style of any HTML tag that has a specific ID attribute. For example, you can specify that the color of the NewTopic ID is green. See the Style object for a description of the style properties you can specify for ids. The ids property is useful when you want to provide an exception to a class defined in the document.classes property. If you use the ids property within the STYLE tag (instead of within the SCRIPT tag), you can optionally omit document from the ids syntax. The ids property always applies to the current document object.</ttextarea>
<input TYPE="button" VALUE="running code" >
</form>
</body>
</html>
Script By shawl.qiu<shawl.qiugmail.com>
11:21 2006-5-29[/code]
[textarea]<%LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<title>Untitled Document</title>
<script LANGUAGE="JAVASCRIPT">
<!--
function rc() {//running code
w = 500; //窗口宽
h = 500; //窗口高
x = (screen.width - w) / 2; //屏幕宽度减去窗口宽度, 然后宽/2
y = (screen.height - h) / 2; //屏幕高度减去窗口高度, 然后高/2
var nw=window.open('','newwindow','location=1,width='+w+',height='+h+',top='+y+',bottom='+y+',left='+x+',right='+x);
//定义变量, 作用为打开新窗口, 并在新窗口写出文本域中的内容
nw.document.write(document.all.content.value); //写出文本域中的内容
}
//--> Script By shawl.qiu<shawl.qiugmail.com>
</script>
</head>
<body>
<form ACTION="" METHOD="post" NAME="formT" ID="formT">
<ttextarea NAME="content" COLS="60" ROWS="10" >Description
Use the ids property to specify the style of any HTML tag that has a specific ID attribute. For example, you can specify that the color of the NewTopic ID is green. See the Style object for a description of the style properties you can specify for ids. The ids property is useful when you want to provide an exception to a class defined in the document.classes property. If you use the ids property within the STYLE tag (instead of within the SCRIPT tag), you can optionally omit document from the ids syntax. The ids property always applies to the current document object.</ttextarea>
<input TYPE="button" VALUE="running code" >
</form>
</body>
</html>
Script By shawl.qiu<shawl.qiugmail.com>
11:21 2006-5-29