当前位置:网站主页>网站技术资料>html>文章内容

html网页常用代码集合

让你的网页无法另存为
<noscript><iframe src="/*>";</iframe></noscript> 

让IFRAME框架内的文档的背景透明
<iframe src="about:<body style='background:transparent'>" 

allowtransparency></iframe>

禁止右键:
<body oncontextmenu="return false" ondragstart="return false" 

onselectstart ="return false" onselect="document.selection.empty()" 

oncopy="document.selection.empty()" onbeforecopy="return 
false"onmouseup="document.selection.empty()"> 

进入页面后立即自动刷新?
<meta http-equiv="refresh" 

content="120;url=http://www.wodutom.com/cn083"> 
http://www.wodutom.com/cn083,这是你自己的网址。 

打开窗口即最大化
<script language="javascript"> 
<!-- Begin 
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
// End --> 


能隐藏IFRAME的滚动条吗?我知道的三种方法:
1. 设置iframe scrolling="no"
2. 被包含页body应用overflow:hidden
3. 被包含页的body标签加scroll="no"

加入背景音乐
<bgsound src="mid/windblue[1].mid" loop="-1"> 只适用于IE

<embed src="music.mid" autostart="true" loop="true" hidden="true"> 

对Netscape ,IE 都适用

嵌入网页
<iframe name="tt" src="/01a.html" width="450" height="287" 

scrolling="Auto" frameborder="0"></iframe>

跳转
<meta http-equiv="refresh" content="3;URL=list.htm">

滚动
<MARQUEE direction=up height=146 onmouseout=start() 

onmouseover=stop() 
scrollAmount=4></marquee>

细线分隔线
<hr noshade size=0 color=#C0C0C0>

过度方式
<meta http-equiv="Page-Exit" 

content="revealTrans(Duration=3,Transition=5)">
Duration的值为网页动态过渡的时间,单位为秒。
Transition是过渡方式,它的值为0到23,分别对应24种过渡方式。如下表:
0 盒状收缩 1 盒状放射
2 圆形收缩 3 圆形放射
4 由下往上 5 由上往下
6 从左至右 7 从右至左
8 垂直百叶窗 9 水平百叶窗
10 水平格状百叶窗 11垂直格状百叶窗
12 随意溶解 13从左右两端向中间展开
14从中间向左右两端展开 15从上下两端向中间展开
16从中间向上下两端展开 17 从右上角向左下角展开
18 从右下角向左上角展开 19 从左上角向右下角展开
20 从左下角向右上角展开 21 水平线状展开
22 垂直线状展开 23 随机产生一种过渡方式

  • 快速服务服务:网站策划 | 网站建设 | 北京网站建设 | 网站推广 | 网罗SEO
  • 联系网罗: 咨询电话:010-89630319 Mail:admin#wonlu.com Msn:刘先生 QQ:26402294
  •   2006-2008 Wonlu.com 北京网罗无限-京ICP备06036090号 网罗SEO