function rightClick()
{
if (event.button==2)
{alert("大坏蛋,不许看!");}
}
document.onmousedown=rightClick
解决方案 »
- jquery 为什么 会触发两次事件?
- 关于text文本框复制粘贴问题
- Ext js form.load combobox value问题
- javascript 简单问题求解!!!
- 高手们过路,帮看看这个问题可以怎么解决,在此谢谢
- js求当前时间出错
- 嵌套jquery冲突问题。疑难杂症啊。。。
- 按钮的事件绑定和取消
- TypeError: 'getElementById' called on an object that does not implement interfac
- return
- 请问如果是非ie的浏览器,怎么去读xml的文件啊
- 问个 Dreamweaver MX 与 五笔 的兼容性问题
保存成vbs
Dim pubLogonURLpubLogonURL="http://expert.csdn.net/member/logon.asp"Dim pubWindow
Dim pubDocumentDim pubTimeoutpubTimeout=15Set pubWindow=CreateObject("InternetExplorer.Application")
pubWindow.Visible = True
pubWindow.Navigate "about:blank"Set pubDocument=DocumentGetByWindows(pubWindow,pubTimeout)
Set tObj=LogonGetByCreate(pubDocument)
pubDocument.body.innerHTML=tObj.outerHTMLFunction DocumentGetByWindows(pWindow,pTimerout)
tOnLoopTimer=Timer
Do
tTimeout=Abs(tOnLoopTimer-Timer)
Loop Until pWindow.ReadyState=4 Or tTimeout>pTimerout Set DocumentGetByWindows=pWindow.document
End FunctionFunction LogonGetByCreate(pDocument) With pDocument.body
.style.backgroundcolor="rgb(0,0,0)"
.style.color="rgb(255,255,255)"
.style.fontfamily="宋体"
.style.fontsize="9pt"
End With
Set tForm=pDocument.createElement("<FORM name='alogon'>")
With tForm
.method="POST"
.target="_blank"
.name="alogon"
.action=pubLogonURL
End With Set tP=pDocument.createElement("P")
tP.innerText="请输入ID:"
tForm.insertAdjacentElement "BeforeEnd",tP Set tInputName=pDocument.createElement("<INPUT NAME='name'>")
With tInputName
.type="text"
.name="name"
.size="7"
.height=22
.style.backgroundcolor="rgb(192,255,0)"
.style.color="rgb(0,0,0)"
.style.fontfamily="宋体"
.style.fontsize="9pt"
.style.borderleft="1px solid rgb(128,128,128)"
.style.borderright="1px solid rgb(255,255,255)"
.style.bordertop="1px solid rgb(128,128,128)"
.style.borderbottom="1px solid rgb(255,255,255)"
End With
tForm.insertAdjacentElement "BeforeEnd",tInputName Set tP=pDocument.createElement("P")
tP.innerText="请输入密码:"
tForm.insertAdjacentElement "BeforeEnd",tP Set tInputPass=pDocument.createElement("<INPUT NAME='pass'>")
With tInputPass
.type="password"
.name="pass"
.size="7"
.height=22
.style.backgroundcolor="rgb(192,255,0)"
.style.color="rgb(0,0,0)"
.style.fontfamily="宋体"
.style.fontsize="9pt"
.style.borderleft="1px solid rgb(128,128,128)"
.style.borderright="1px solid rgb(255,255,255)"
.style.bordertop="1px solid rgb(128,128,128)"
.style.borderbottom="1px solid rgb(255,255,255)"
End With
tForm.insertAdjacentElement "BeforeEnd",tInputPass Set tInputType=pDocument.createElement("<INPUT NAME='type'>")
With tInputType
.type="text"
.name="type"
.size="7"
.height=22
.value=1
.style.backgroundcolor="rgb(192,255,0)"
.style.color="rgb(0,0,0)"
.style.fontfamily="宋体"
.style.fontsize="9pt"
.style.borderleft="1px solid rgb(128,128,128)"
.style.borderright="1px solid rgb(255,255,255)"
.style.bordertop="1px solid rgb(128,128,128)"
.style.borderbottom="1px solid rgb(255,255,255)"
.style.visibility="hidden"
End With
tForm.insertAdjacentElement "BeforeEnd",tInputType Set tP=pDocument.createElement("P")
tP.innerText=""
tForm.insertAdjacentElement "BeforeEnd",tP Set tButtom=pDocument.createElement("INPUT")
With tButtom
.type="submit"
.value="进入"
.height=20
.style.backgroundcolor="rgb(100,150,200)"
.style.color="rgb(255,255,255)"
.style.fontfamily="宋体"
.style.fontsize="9pt"
.style.borderleft="2px solid rgb(255,255,255)"
.style.borderright="2px solid rgb(0,50,100)"
.style.bordertop="2px solid rgb(255,255,255)"
.style.borderbottom="2px solid rgb(0,50,100)"
End With
tForm.insertAdjacentElement "BeforeEnd",tButtom Set LogonGetByCreate=tForm
End Function
弹窗?:用Ctrl+N看看...
有地址栏更好:view-source:http://...
看看你还能屏蔽不?
能屏蔽的话,告诉我一声啊!