1、
οncοntextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 中.国站长站
可用于Table 中.国.站.长.站2、
取消选取、防止复制Chinaz.com
3、οnpaste="return false" 不准粘贴 Chinaz_com
4、οncοpy="return false;" oncut="return false;" 防止复制
中.国.站长站
5、 IE地址栏前换成自己的图标 Www@Chinaz@com
6、 可以在收藏夹中显示出你的图标 站.长站
7、 关闭输入法
中.国.站.长.站
8、永远都会带着框架
Chinaz_com
以下为引用的内容:
if (window == top)top.location.href = "frames.htm"; //frames.htm为框架网页
// –>
[中国站长站]
9、防止被人frame
中.国站长站
以下为引用的内容:
if (top.location != self.location)top.location=self.location;
// –>
中国.站长站
10、网页将不能被另存为
[中国站长站]
Chinaz.com11、
οnclick="window.location = ‘view-source:’+ ‘http://www.webjx.com/’">
Chinaz~com
12、删除时确认 中国.站.长站
中.国.站长站
13、取得控件的绝对位置
Www~Chinaz~com
以下为引用的内容:
//Javascript
function getIE(e){
var t=e.offsetTop;
var l=e.offsetLeft;
while(e=e.offsetParent){
t+=e.offsetTop;
l+=e.offsetLeft;
}
alert("top="+t+"/nleft="+l);
}
Www~Chinaz~com
//VBScript
function getIE()
dim t,l,a,b
set a=document.all.img1
t=document.all.img1.offsetTop
l=document.all.img1.offsetLeft
while a.tagName<>"BODY"
set a = a.offsetParent
t=t+a.offsetTop
l=l+a.offsetLeft
wend
msgbox "top="&t&chr(13)&"left="&l,64,"得到控件