1. <dd id="uw4i9"><track id="uw4i9"></track></dd>

    2. <dd id="uw4i9"><noscript id="uw4i9"></noscript></dd><dd id="uw4i9"><track id="uw4i9"></track></dd>
        <tbody id="uw4i9"></tbody>
        <dd id="uw4i9"><pre id="uw4i9"></pre></dd>
        首頁 > 設計 > 實用代碼 > 正文

        網頁制作有用的代碼

        2020-09-18 22:22:59
        字體:
        來源:轉載
        供稿:網友

        請問如何去掉主頁右面的滾動條?
        <body scroll="no">
        <body style="overflow-y:hidden">
        ********************************
        怎樣不使用頁面的緩存?即每一次打開頁面時不是調用緩存中的東西
        <meta http-equiv="pragma" content="no-cache">
        ********************************
        請問如何忽視右鍵?
        <body oncontextmenu="return false">
        ********************************
        怎樣在同一頁面內控制不同鏈接的css屬性?
        a:active{}
        a:link{}
        a:visited{}

        a.1:active{}
        a.1:link{}
        a.1:visited{}
        在dw的css中定義一個新的標示,按照html的語法,超級連接得是
        a.yours:link a.yours:hover
        yours可以改作你自己的字
        然后在選中某個連接后,在css面版中點中yours即可。
        按需要,你可以定義n個標示,n種鼠標over的效果
        ********************************
        電子郵件處理提交表單
        <form name="form1" method="post" action="mailto:webmaster@CuoXin.com" enctype="text/plain">
        <input type=submit>
        </form>
        ********************************
        有沒有可能用層來遮住flash?
        1.在flash的parameters里加入 <param name="wmode" value="transparent">
        2.<body onblur=self.focus()>
        ********************************
        如何根據屏幕分辨率調用相對應的頁面?
        onclick=alert("你的顯示分辯率為:"+screen.width+"×"+screen.height)
        先做好幾個頁面,比如一個htm1.htm是800*600,一個是htm2.htm是1024*768的
        然后在你的入口頁面 index.htm 中判斷:
        <html>
        <head>
        <script language=javascript>
        <!--
        function mhref() {
        if (screen.width == 1024) location.href = "htm2.htm";
        else if (screen.width == 800) location.href = "htm1.htm";
        else return(false);
        }
        //-->
        </script>
        </head>
        <body onload="mhref();">
        </body>
        </html>
        ********************************
        如何彈出只有狀態欄的窗口?
        <html>
        <head>
        <title>open() close()</title>
        <script language="javascript" type="text/javascript">
        <!--
        function openwin()
        {
        var newwin=open("","","menubar=1,height=200");
        newwin.document.write("<form>");
        newwin.document.write("單擊以下按鈕關閉窗口:<p>");
        newwin.document.write("<input type=button value='關閉' onclick=window.close()>");
        newwin.document.write("</form>");
        }
        </script></head>
        <body>
        <div align=center>
        <h2>單擊以下按鈕顯示新窗口...</h2>
        <form name=form1>
        <input type=button value="新窗口1[只顯示地址欄]" onclick=window.open('','new1','location=1')>
        <input type=button value="新窗口2[只顯示狀態欄]" onclick=window.open('','','status=1')>
        <input type=button value="新窗口3[只顯示工具欄]" onclick=window.open('','new2','toolbar=1,height=200,width=450')>
        <input type=button value="新窗口4[只顯示菜單欄]" onclick=openwin()>
        <input type=button value="新窗口5[一個不少]" onclick=window.open('','new5')>
        <input type=button value="新窗口6[光棍但可調大小]" onclick=window.open('http://www.planetlevelzero.com/forumdisplay.php?forumid=32#thread','new6','resizable=1')>
        </form>
        </div>
        </body>
        </html>

        發表評論 共有條評論
        用戶名: 密碼:
        驗證碼: 匿名發表
        欧洲熟妇色XXXX欧美老妇免费

        1. <dd id="uw4i9"><track id="uw4i9"></track></dd>

        2. <dd id="uw4i9"><noscript id="uw4i9"></noscript></dd><dd id="uw4i9"><track id="uw4i9"></track></dd>
            <tbody id="uw4i9"></tbody>
            <dd id="uw4i9"><pre id="uw4i9"></pre></dd>