javascript 运行代码的代码 By Stabx

标题: javascript 运行代码的代码 By Stabx

正文:

QUOTE:


<script LANGUAGE="JAVASCRIPT"> Script By shawl.qiu </script>

Script By shawl.qiu 11:21 2006-5-29

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<[email]shawl.qiu@gmail.com[/email]>
</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" onClick="rc()">
</form>
</body>
</html>

Script By shawl.qiu<[email]shawl.qiu@gmail.com[/email]>
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<[email]shawl.qiu@gmail.com[/email]>
</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" onClick="rc()">
</form>
</body>
</html>

Script By shawl.qiu<[email]shawl.qiu@gmail.com[/email]>
11:21 2006-5-29


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值