right.js
上传用户:apresys
上传日期:2021-03-30
资源大小:813k
文件大小:2k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

DOS

  1. 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'>"
  2. +"<tr><td class='window-1'><table width='100%' border='0' cellpadding='3' cellspacing='0'>"
  3. +"<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>"
  4. +"</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>"
  5. +"</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>"
  6. +"</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>"
  7. +"</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>"
  8. +"</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>"
  9. +"</tr></table></td></tr></table>"
  10. document.write(menuload);
  11. function showmenuie5(){
  12.  var rightedge=document.body.clientWidth-event.clientX-100
  13.  var bottomedge=document.body.clientHeight-event.clientY-25
  14. if (rightedge<rightmenu.offsetWidth)
  15.  rightmenu.style.left=document.body.scrollLeft+event.clientX-rightmenu.offsetWidth;
  16. else
  17.  rightmenu.style.left=document.body.scrollLeft+event.clientX
  18. if (bottomedgerightmenu.offsetHeight)
  19.  rightmenu.style.top=document.body.scrollTop+event.clientY-rightmenu.offsetHeight
  20. else
  21.  rightmenu.style.top=document.body.scrollTop+event.clientY
  22.  rightmenu.style.visibility="visible"
  23. return false
  24. }
  25. function hidemenuie5(){
  26.  rightmenu.style.visibility="hidden"
  27.  }
  28. document.oncontextmenu=showmenuie5;
  29. document.body.onclick=hidemenuie5;