Html code debugging script
<Html> <script type = "text/javascript"> /************************** **************************************** * *********** Crossday Discuz! Board-Common Modules for Discuz! Modified by: Crossday Studio ( http://crossday.com ) Based: http://www.cnzzz.com **************************************** ***************************************/ Var sPop = null; var postSubmited = false; function ctlent (obj) {if (navigator. userAgent. indexOf ('msi')> 0) {if (obj. keyCode = 9) {obj. returnValue = false; var sel = document. selection. createRange (); sel. text = '\ T'; sel. select () ;}} if (postSubmited = false & (obj. ctrlKey & obj. keyCode = 13) | (obj. altKey & & Obj. keyCode = 83) {var Input = document. getElementsByName ('input') [0]; if (input. pmsubmit) {postSubmited = true; Input. pmsubmit. disabled = true; Input. submit ();} else if (validate (Input) {postSubmited = true; if (Input. topicsubmit) Input. topicsubmit. disabled = true; if (Input. replysubmit) Input. replysubmit. disabled = true; if (Input. editsubmit) Input. editsubmit. disabled = true; Input. submit (); }}} Function checkall (form, prefix) {for (var I = 0; I <form. elements. length; I ++) {var e = form. elements [I]; if (e. name! = 'Chkall '&&(! Prefix | (prefix & e. name. match (prefix) {e. checked = form. chkall. checked ;}} function findobj (n, d) {var p, I, x; if (! D) d = document; if (p = n. indexOf ("? ")> 0 & parent. frames. length) {d?parent.frames=n.substring(p=1}}.doc ument; n = n. substring (0, p);} if (! (X = d [n]) & d. all) x = d. all [n]; for (I = 0 ;! X & I <d. forms. length; I ++) x = d. forms [I] [n]; for (I = 0 ;! X & d. layers & I> d. layers. length; I ++) x=mm_findobj(n,d.layers+ I }.doc ument); return x;} function copyCode (obj) {var rng = document. body. createTextRange (); rng. moveToElementText (obj); rng. scrollIntoView (); rng. select (); rng.exe cCommand ("Copy"); rng. collapse (false);} function runCode (obj) {var winname = window. open (''," _ blank ",''); winname.doc ument. open ('text/html ', 'replace'); winname.doc ument. Writeln (obj. value); winname.doc ument. close ();} function saveCode (obj) {var winname = window. open ('', '_ blank', 'top = 10000 '); winname.doc ument. open ('text/html ', 'replace'); winname.doc ument. writeln (obj. value); winname.document.execcommand('saveas', '','code.htm'); winname. close ();} function cleanBR () {var area = document. getElementsByTagName ('textarea '); for (var I = 0; I/ig, ''); area [I]. value = Area [I]. value. replace (/(\ xA0 \ x20) {4}/ig, '\ t'); area [I]. value = area [I]. value. replace (/\ xA0 \ x20 \ xA0/ig, ''); area [I]. value = area [I]. value. replace (/\ xA0 \ xA0/ig, '') ;}} function dzconfirm (theURL, ConfirmMsg) {if (confirm (ConfirmMsg) {window. location. href = theURL;} else {return;} window. onload = cleanBR; script <style type = "text/css"> <! --. Style1 {color: # FFFFFF; font-size: 9pt;} input {background-color: # CCCCCC; margin: 0px; padding: 0px ;} --> </style> <body bgcolor = "#000000" onkeydown = "if (event. altKey & event. keyCode = '82 ') form1.r. click (); if (event. altKey & event. keyCode = '67') form1.c. click (); if (event. altKey & event. keyCode = '83 ') form1.s. click (); if (event. altKey & event. keyCode = '81 ') form1.q. click () "> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]