javascript
CODE:
<%@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.qiu@gmail.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>
<br>
<input TYPE="button" VALUE="running code" >
</form>
</body>
</html>
Script By shawl.qiu<shawl.qiu@gmail.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.qiu@gmail.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>
<br>
<input TYPE="button" VALUE="running code" >
</form>
</body>
</html>
Script By shawl.qiu<shawl.qiu@gmail.com>
11:21 2006-5-29