- 0
- 0
- 约5.71千字
- 约 7页
- 2022-03-01 发布于福建
- 举报
网页常用代码收藏(一)
1. 防止被欠入
script language=javascript
!--
if(window!=window.top){top.location.href=location.href;}
//--
/script
2. 永远都会带着框架
script language=javascript
!--
if (window == top)top.location.href = frames.htm;
// --
/script
说明: frames.htm 为你的网页,这也是保护页面的一种方法
3. 网页将不能被另存为
noscriptiframe src=*.html/iframe/noscript
说明: noscirpt 的用法很广,其中一条就是可以使 JS 广告失效
4. 自动跳转
在源代码中的 head…/head 加入
meta http-equiv=refresh content=8;URL=
说明: content=8 表示 8 秒刷新到 URL
5. 打开窗口立即最大化
script language=javascript
!--
原创力文档

文档评论(0)