...

日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

做一個自己的網頁編譯器

系統 2507 0
做一個自己可以編譯網頁的編譯器,我總結了前輩們的代碼,自己修改了下
< script > ...
<!--
var i = 0 ;
var ie = (document.all) ? 1 : 0 ;
var ns = (document.layers) ? 1 : 0 ;
// 預覽
function preview()
... {
if (document.pad.text.value.length > 0 )
... {
pr
= window.open( "" , " Preview " , " scrollbars=1,menubar=1,status=1,width=480height=320,left=10,top=10 " );
pr.document.write(document.pad.text.value);
}

else alert( ' 沒有代碼可預覽! ' )
}

// 保存
function savetxt() ... {
if (document.pad.text.value.length > 0 )
... {
var newwin = window.open( ' about:blank ' , '' , ' top=10000 ' );
newwin.document.write(document.pad.text.value);
newwin.document.execCommand(
' saveas ' , '' , ' hx66.html ' )
newwin.window.close();
}

else alert( ' 沒有代碼可保存! ' )
}

// -->
</ script >
< body style ='cursor:url(skin/mouse.cur)' >
< FORM method =post name =pad >
< table width ='700' border ='0' cellspacing ='1' align ='center' >
< tr >
< td Valign ='TOP' style ="LINE-HEIGHT:150%;padding:5;" align ='center' >
< TEXTAREA cols =95 name =text rows =25 >
</ TEXTAREA >
</ td >
</ tr >
< tr >
< td align ='center' >
< INPUT name =view onclick =preview() type =button value =運行 onmouseover ="this.className='boton'" onmouseout ="this.className='botoff'" class ="botoff" >
< INPUT name =retur onclick =savetxt() type =button value =保存 onmouseover ="this.className='boton'" onmouseout ="this.className='botoff'" class ="botoff" >
< INPUT name =clear type =reset value =還原 onmouseover ="this.className='boton'" onmouseout ="this.className='botoff'" class ="botoff" >
</ form >
</ body >

做一個自己的網頁編譯器


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 霸州市| 钟祥市| 宣武区| 阿拉善盟| 邢台市| 马龙县| 都昌县| 万年县| 阳江市| 松潘县| 临颍县| 峨边| 竹山县| 奉节县| 霍林郭勒市| 宜丰县| 四会市| 重庆市| 巨鹿县| 益阳市| 甘泉县| 丰都县| 屏东市| 封开县| 日照市| 隆回县| 永泰县| 洪雅县| 滨海县| 通榆县| 垦利县| 禄丰县| 武川县| 同德县| 如东县| 昔阳县| 四子王旗| 漠河县| 宁陵县| 旅游| 茶陵县|