javascript 運行代碼的代碼

來源:互聯網
上載者:User
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



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.