茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    用JS讀寫注冊(cè)表制作打印頁(yè)面設(shè)置功能
    來(lái)源:易賢網(wǎng) 閱讀:1190 次 日期:2015-03-18 11:12:24
    溫馨提示:易賢網(wǎng)小編為您整理了“用JS讀寫注冊(cè)表制作打印頁(yè)面設(shè)置功能”,方便廣大網(wǎng)友查閱!

    <html>

    <head>

    <title>頁(yè)面設(shè)置</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf8">

    <script language="javascript">

    var HKEY_Root,HKEY_Path,HKEY_Key;

    var HKEY_Root = "HKEY_CURRENT_USER";

    var HKEY_Path = " Explorer\\PageSetup\\";

    var HKEY_BASE = HKEY_Root + HKEY_Path;

    var Wsh = new ActiveXObject("WScript.Shell");

    function checkSubmit(){

    }

    //因?yàn)橐{(diào)用組件來(lái)改寫注冊(cè)表,所改要把IE安全度調(diào)低一點(diǎn)

    //Internet選項(xiàng)-安全-自定義級(jí)別

    //特別ActiveX控件和插件那一欄,把禁用的改為提示

    //初始化頁(yè)面數(shù)據(jù)

    function initData(){

    try{

    //document.getElementById"header").value = Wsh.RegRead(HKEY_BASE + "header"); //頁(yè)眉

    //document.getElementById"footer").value = Wsh.RegRead(HKEY_BASE + "footer"); //頁(yè)腳

    document.getElementById"margin_top").value = Wsh.RegRead(HKEY_BASE + "margin_top"); //上邊距

    document.getElementById"margin_bottom").value = Wsh.RegRead(HKEY_BASE + "margin_bottom"); //下邊距

    document.getElementById"margin_left").value = Wsh.RegRead(HKEY_BASE + "margin_left"); //左邊距

    document.getElementById"margin_right").value = Wsh.RegRead(HKEY_BASE + "margin_right"); //右邊距

    }catch(e){

    alert('不能進(jìn)行頁(yè)面設(shè)置,請(qǐng)降低IE安全級(jí)別!\nInternet選項(xiàng)-安全-自定義級(jí)別\n[ActiveX控件和插件]一欄,把所有(禁用)的改為(提示)');

    }

    }

    //保存數(shù)據(jù)

    function saveData(){

    try{

    Wsh.RegWrite(HKEY_BASE + "header","");

    Wsh.RegWrite(HKEY_BASE + "footer","");

    Wsh.RegWrite(HKEY_BASE + "margin_top","<%=Request("margin_top")%>"); //上邊距

    Wsh.RegWrite(HKEY_BASE + "margin_bottom","<%=Request("margin_bottom")%>"); //下邊距

    Wsh.RegWrite(HKEY_BASE + "margin_left","<%=Request("margin_left")%>"); //左邊距

    Wsh.RegWrite(HKEY_BASE + "margin_right","<%=Request("margin_right")%>"); //右邊距

    initData();

    alert('設(shè)置成功!');

    self.close();

    }

    catch(e){

    alert(e + "\n設(shè)置失敗!");

    }

    }

    //頁(yè)面加載事件

    function pageLoad(){

    if(sy_QueryString("action") == "SAVE"){

    saveData();

    return;

    }

    initData();

    }

    </script>

    </head>

    <body onload="pageLoad()">

    <form name="form1" method="post" action="PageSetup.asp?action=SAVE" onSubmit="return checkSubmit()" >

    <table valign="center" align="center" width="95%" border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#4a65a5">

    <tr>

    <td bgcolor="#4a65a5"><font color="#FFFFFF">頁(yè)邊距:</font></td>

    </tr>

    <tr>

    <td height="139">

    <table width="100%" border="0" cellspacing="10" cellpadding="0" align="center" height="100%">

    <tr>

    <td height="99">

    <table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td height="1" bgcolor="#336699"></td>

    <td height="1" bgcolor="#336699"></td>

    </tr>

    <tr>

    <td bgcolor="#f5f5f5" height="3"> </td>

    <td bgcolor="#f5f5f5" height="3"> </td>

    </tr>

    <tr>

    <td bgcolor="#f5f5f5" height="2">上:</td>

    <td bgcolor="#f5f5f5">

    <input type="text" id="margin_top" name="margin_top" size="20" value=""></td>

    </tr>

    <tr>

    <td bgcolor="#f5f5f5" height="2">下:</td>

    <td bgcolor="#f5f5f5">

    <input type="text" id="margin_bottom" name="margin_bottom" size="20" value=""></td>

    </tr>

    <tr>

    <td bgcolor="#f5f5f5" height="2">左:</td>

    <td bgcolor="#f5f5f5">

    <input type="text" id="margin_left" name="margin_left" size="20" value=""></td>

    </tr>

    <tr>

    <td bgcolor="#f5f5f5" height="2">右:</td>

    <td bgcolor="#f5f5f5">

    <input type="text" id="margin_right" name="margin_right" size="20" value=""></td>

    </tr>

    <tr align="right">

    <td height="80" bgcolor="#f5f5f5" colspan="2" align="center">

    <input type="submit" name="subOk" value=" 提 交 " class="stbtm" style="margin-right:8px">

    <input type="button" name="Submit3" value=" 取 消 " class="stbtm" onClick="javascript:self.close();">

    &nbsp;&nbsp; </td>

    </tr>

    </table>

    </td>

    </tr>

    </table>

    </td>

    </tr>

    <tr align="right">

    <td bgcolor="#336699" height="3">

    </td>

    </tr>

    </table>

    </form>

    </body>

    </html>

    更多信息請(qǐng)查看IT技術(shù)專欄

    更多信息請(qǐng)查看腳本欄目
    易賢網(wǎng)手機(jī)網(wǎng)站地址:用JS讀寫注冊(cè)表制作打印頁(yè)面設(shè)置功能
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請(qǐng)考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!

    2026國(guó)考·省考課程試聽(tīng)報(bào)名

    • 報(bào)班類型
    • 姓名
    • 手機(jī)號(hào)
    • 驗(yàn)證碼
    關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡(jiǎn)要咨詢 | 簡(jiǎn)要咨詢須知 | 新媒體/短視頻平臺(tái) | 手機(jī)站點(diǎn) | 投訴建議
    工業(yè)和信息化部備案號(hào):滇ICP備2023014141號(hào)-1 云南省教育廳備案號(hào):云教ICP備0901021 滇公網(wǎng)安備53010202001879號(hào) 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號(hào)
    云南網(wǎng)警備案專用圖標(biāo)
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號(hào):hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)
    云南網(wǎng)警報(bào)警專用圖標(biāo)