要完成此效果把如下代码加入到区域中
<script language=JavaScript>
\n<\/script>";
        i++;
        if (i=1) alert("代码已编译1次!");
        else alert("代码已编译"+i+"次!");
    }
function selectCode() /* Selecting "Compilation" for Copying */
    {
        if(document.pad.text.value.length>0)
            {
                document.pad.text.focus();
                document.pad.text.select();
            }
        else alert('无任何内容被选中!')
    }
function preview() /* Preview for the "Compilation" */
    {
        if(document.pad.text.value.length>0)
            {
                pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
                pr.document.write(document.pad.text.value);
            }
        else alert('无任何内容可供预览!')
    }
function uncompile() /* Decompiling a "Compilation" */
    {
        if (document.pad.text.value.length>0)
            {
                source=unescape(document.pad.text.value);
                document.pad.text.value=""+source+"";
            }
        else alert('请把需待还原的代码copy到此框中!')
    }
// -->
</script>