- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
right.js
资源名称:4s.rar [点击查看]
上传用户:apresys
上传日期:2021-03-30
资源大小:813k
文件大小:2k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
DOS
- var menuload="<table id=rightmenu width='85' border='1' cellspacing='0' style='padding-left:16;padding-top:1;padding-bottom:1; width:84px; z-index:50;visibility: hidden;' class='window-0'>"
- +"<tr><td class='window-1'><table width='100%' border='0' cellpadding='3' cellspacing='0'>"
- +"<tr><td align='center' onClick=document.execCommand('Undo') onMouseOver=this.style.background='#08246B';this.style.color='#FFFFFF' onMouseOut=this.style.background='';this.style.color=''>撤消(<U>Z</U>)</td>"
- +"</tr><tr><td align='center' onClick=document.execCommand('Cut') onMouseOver=this.style.background='#08246B';this.style.color='#FFFFFF' onMouseOut=this.style.background='';this.style.color=''>剪切(<U>T</U>)</td>"
- +"</tr><tr><td align='center' onClick=document.execCommand('Copy') onMouseOver=this.style.background='#08246B';this.style.color='#FFFFFF' onMouseOut=this.style.background='';this.style.color=''>复制(<U>C</U>)</td>"
- +"</tr><tr><td align='center' onClick=document.execCommand('Paste') onMouseOver=this.style.background='#08246B';this.style.color='#FFFFFF' onMouseOut=this.style.background='';this.style.color=''>粘贴(<U>P</U>)</td>"
- +"</tr><tr><td align='center' onClick=document.execCommand('Delete') onMouseOver=this.style.background='#08246B';this.style.color='#FFFFFF' onMouseOut=this.style.background='';this.style.color=''>删除(<U>D</U>)</td>"
- +"</tr><tr><td align='center' onClick=this.select() onMouseOver=this.style.background='#08246B';this.style.color='#FFFFFF' onMouseOut=this.style.background='';this.style.color=''>全选(<u>A</u>)</td>"
- +"</tr></table></td></tr></table>"
- document.write(menuload);
- function showmenuie5(){
- var rightedge=document.body.clientWidth-event.clientX-100
- var bottomedge=document.body.clientHeight-event.clientY-25
- if (rightedge<rightmenu.offsetWidth)
- rightmenu.style.left=document.body.scrollLeft+event.clientX-rightmenu.offsetWidth;
- else
- rightmenu.style.left=document.body.scrollLeft+event.clientX
- if (bottomedgerightmenu.offsetHeight)
- rightmenu.style.top=document.body.scrollTop+event.clientY-rightmenu.offsetHeight
- else
- rightmenu.style.top=document.body.scrollTop+event.clientY
- rightmenu.style.visibility="visible"
- return false
- }
- function hidemenuie5(){
- rightmenu.style.visibility="hidden"
- }
- document.oncontextmenu=showmenuie5;
- document.body.onclick=hidemenuie5;