要禁用“另存为”和禁止查看“源文件”需要加入什么代码?

来源:百度知道 编辑:UC知道 时间:2024/06/03 16:02:54
想在自己的网站上禁用“另存为”和禁止查看“源文件”需要加入什么代码?谢谢!


整理了一些网页代码

加入透明Flash代码
<embed src="Flash地址"; width="400" height="300" quality="high" wmode="transparent" align="right" style="position: absolute; left:0; top:0">

此代码为插入透明flash代码,其中 width="" 为flash的宽,height="" 为 flas的高,left: 为从左向右移的位置,top: 为从上向下移的位置

加入鼠标代码
<style type="text/css">body{cursor:url(鼠标地址)}</style>
加入音乐代码
<bgsound src="音乐地址" loop="-1">

此代码为加入背景音乐,其中loop="-1"为无限次循环
<embed src="音乐地址" hidden>

此代码为插入音乐,hidden为隐藏

固定背景
<Body bgproperties="fixed">

禁止右键
<body oncontextmenu="return false">

过度方式
<meta http-equiv="Page-Exit" content="revealTrans(Duration=3,Transition=5)">

此代码可以在链接其它页面的时候产生一种过度的特效,Duration