国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 實用代碼 > 正文

網頁制作有用的代碼

2024-09-05 12:07:53
字體:
來源:轉載
供稿:網友

請問如何去掉主頁右面的滾動條?
<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@VeVb.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.survivalescaperooms.com/forumdisplay.php?forumid=32#thread','new6','resizable=1')>
</form>
</div>
</body>
</html>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 德江县| 博爱县| 鹤山市| 南丰县| 江陵县| 鄂州市| 汪清县| 汉沽区| 普格县| 衡东县| 贵州省| 恭城| 依兰县| 宜川县| 信阳市| 神农架林区| 虞城县| 浮山县| 伊宁县| 阆中市| 溧水县| 无锡市| 江安县| 大兴区| 涟源市| 理塘县| 舟曲县| 常山县| 郁南县| 四平市| 冷水江市| 安多县| 台北市| 穆棱市| 淮阳县| 三河市| 洪雅县| 祁连县| 鸡泽县| 本溪市| 乌兰浩特市|