<html> <head> <title>JSer </title> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <style> /* Global CSS */ * { padding:0px; margin:0px; font-size:13px; font-family: arial 宋體; } body { overflow:auto; border:0px none black; background-color:buttonface; } li { margin:0px 0px 0px 40px; padding:2px 4px; } /* Class CSS */ .quote { color:#999; } .comments { color: #009090; } .indent { margin-left:25px; } .regexp { color:#F000F0; } /* Identified CSS */ #divTools { height:20px; border-bottom:1px solid #555; padding-left:15px; } #divTools a { color:navy; text-decoration:none; height:20px; line-height:20px; padding:0px 25px; } #divTools a:hover { color:white; background-color:navy; text-decoration:none; height:20px; line-height:20px; } #divJSInput { display:none; width:600px; height:450px; border:2px outset buttonface; position:absolute; background-color:buttonface; z-Index:2; } #divJSInputTitle { color:white; background-color:navy; height:20px; line-height:20px; padding:0px 10px; cursor:default; } #txtJSInput { width:598px; height:406px; overflow:auto; padding:4px 8px; background-color:white;} #divJSInputBar { height:24px; padding:0px 4px; } #divJSInputBar input { width:110px; height:22px; border:1px solid #555; line-height:20px; } #divJSOutput { background-color:white; border:1px inset buttonface; width:100%; height:500px; overflow:auto; } #divWaiting { display:none; width:400px; height:60px; border:1px solid buttonface; position:absolute; background-color:#E0F0F0; z-Index:3; text-align:center; padding-top:10px; } #divWaiting input { width:140px; height:22px; border:1px solid #555; line-height:20px; cursor:default; margin-top:4px; } </style> </head> <body> Input JS Please Input the JS: <textarea id="txtJSInput"></textarea> <input type="button" value="OK" onclick="execJSInput();" /> <input type="button" value="Cancel" onclick="hideJSInput();" /> Processing...<span id="spnProcess"></span> <input type="button" value="Stop" onclick="stopExec();" /> </body> </html> [Ctrl+A 全選 注:如需引入外部Js需刷新才能執行] JavaScript技術:不會死機的js 格式代碼,轉載需保留來源! 鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。