Javascript
CODE:
<% @LANGUAGE = "VBSCRIPT" codepage= "65001"%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>untitled document</title>
<script language= "JAVASCRIPT" >
<!--
function RC () {//running code
w = 500; Window width
h = 500; Window height
x = (screen.width-w)/2; Screen width minus window width, then width/2
y = (screen.height-h)/2; Screen height minus window height, then high/2
var nw=window.open (', ' newwindow ', ' location=1,width= ' +w+ ', height= ' +h+ ', top= ' +y+ ', bottom= ' +y+ ', left= ' +x+ ', right= ' +x ');
Define a variable to open a new window and write out the contents of a text field in a new window
Nw.document.write (Document.all.content.value); Write out the contents of a text field
}
--> Script by shawl.qiu<shawl.qiu@gmail.com>
</script>
<body>
<form action= "" method= "Post" name= "formt" id= "FORMT" >
Name= "Content" cols= "<ttextarea" rows= "ten" >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>
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" >
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>untitled document</title>
<script language= "JAVASCRIPT" >
<!--
function RC () {//running code
w = 500; Window width
h = 500; Window height
x = (screen.width-w)/2; Screen width minus window width, then width/2
y = (screen.height-h)/2; Screen height minus window height, then high/2
var nw=window.open (', ' newwindow ', ' location=1,width= ' +w+ ', height= ' +h+ ', top= ' +y+ ', bottom= ' +y+ ', left= ' +x+ ', right= ' +x ');
Define a variable to open a new window and write out the contents of a text field in a new window
Nw.document.write (Document.all.content.value); Write out the contents of a text field
}
--> Script by shawl.qiu<shawl.qiu@gmail.com>
</script>
<body>
<form action= "" method= "Post" name= "formt" id= "FORMT" >
Name= "Content" cols= "<ttextarea" rows= "ten" >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>
Script by shawl.qiu<shawl.qiu@gmail.com>
11:21 2006-5-29