請問如何去掉主頁右面的滾動條?
<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:[email protected] 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('https://www.VeVb.com/forumdisplay.php?forumid=32#thread','new6','resizable=1')>
</form>
</div>
</body>
</html>
上一頁1 2 3 下一頁閱讀全文