1.页面自动更新
<meta http-equiv="refresh" content="60;
url=http://xxxxxxxxx.php">
2.网页自动转页
<META HTTP-EQUIV="Refresh" CONTENT="时间(秒);URL=地址">
3.点击右键提醒加入书签
<SCRIPT language=&#106avascript><!--
function click() {
if (event.button==2) {window.external.addFavorite(http://',这裏是你的网页名)}}
document.&#111nmousedown=click
// --></SCRIPT>
4.简单的页面加密
<script LANGUAGE="&#106avascript">
<!--
function loopy(){
var sWord ="";
while(sWord!="login"){sWord=prompt("请输入你的登陆密码");}
alert("登陆成功!");}
loopy()
//-->
</script>
5.自动滚屏
<script Language="&#106avascript"><!--
function scrollit(){
for (I=1; I<=500; I++){
parent.scroll(1,I)}}
//--></script>
6.去掉窗口捲轴
scroll="no" style="overflow-y:hidden"
7.忽视右键
<body οncοntextmenu="return false">或<body style="overflow-y:hidden">
8.加入背景音乐
IE:<bgsound src="*.mid" loop=infinite>
NS:<embed src="*.mid" autostart=true hidden=true loop=true></embed>
*.mid你的背景音乐的midi格式档
9.自动开启和关闭视窗
<script Language="&#106avascript">
function winopen1(){
打开的视窗名=open("nb","Homepage","toolbar=no,location=no,
directories=no,status=no,menubar=no,scrollbars=no,resizable=no,
copyhistory=no,width=160,height=200,left=200,top=100"); }
</script><a href &#111nMouseOver="winopen1();return true;"&#111nMouseOut="打开的视窗名.close();">
<p>这裏是连接</a></p>
10.固定背景图不动
<style>
body{background-image:url(logo.gif);
background-repeat:no-repeat;background-position:center}
</style>
11.让流览器在保存页面时保存失败
<NOSCRIPT><iframe src="*.html"></iframe></NOSCRIPT>
12.网页自动关闭
<html>
<head>
<object id=closes type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" &#118alue="Close">
</object>
</head>
<body οnlοad="window.setTimeout(closes.Click(),10000)">
这个视窗会在10秒过后自动关闭,而且不会出现提示.
</body>
</html>
13.禁止查看源代码
<SCRIPT language=&#106avascript>
function click() {if (event.button==2) {alert(你想幹嘛!);}}document.&#111nmousedown=click
</SCRIPT>
14.页中页
<iframe name="main" src=http://www com width="350" scrolling="NO" height="380" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0"></iframe>
<iframe src="123.htm" width="360" height="240" scrolling="auto"></iframe>
15.如何在dw中设置flash背景为透明
网页特效集锦:http://www.751com.cn/fanwen/lunwen_62027.html