wmode属性设置成: "transparent" 就可以使做的FLASH在ASP中透明显示

事例:
<embed scr="FLASH地址" type="application/x-shockwave-flash" wmode="transparent"></embed>

禁止页面别存为:
加入<noscript><iframe scr="网页"></iframe></noscript>

注册DLL组件:
set shell=CreateObject("wscript.shell")
shell.run "d:\windows\system32\regsvr32.exe/n/s"&strfile,0,false

禁止在网页中按一些按键(代码放在<body>中)
keycode
8----------退格
13--------回车
116------F5刷新
37-------ALT+→或←
78-------Ctrl+N新建项
121-----shift+F10

function keydown()------------------控制键盘
{
 if (event.keycode==116)
event.return value=false;
alert("不允许按F5刷新");
else if (event.keycode==8)
.
.
.
}
function keydown()------------------控制鼠标
{
 if (event.button==1)
alert("你按了鼠标左键");
else if (event.button==2)
alert("你按了鼠标右键");
}


图片的放大和缩小
<img scr="图片地址" onmousewheel="return biging("this")">----onmousewheel事件式鼠标滚动钮滚动
<script language="javascript">
 function biging(o)
{
 var zoom=parseInt(o.style.zoom.10) || 100;
zoom+=event.wheelDelta/12;
if (zoom>0)
 o.style.zoom=zoom+"%";
return false;
}
</script>

被遗忘的事件:   -------把以下事件加入到控件中,不如:文本框中可以禁止复制 粘贴 剪接
例子
<text size="20" name="text1" value="password" oncopy="return false;" oncut="return false"  onp(这里完了先留下)></text>
posted on 2006-10-24 23:28  小角色  阅读(209)  评论(0)    收藏  举报