⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rightkey_menu.js

📁 电脑知识十万个为什么-v1.5注册版.zip
💻 JS
字号:
 //set this variable to 1 if you wish the URLs of 
 //the highlighted menu to be displayed in the status bar
 var display_url=1
 function showmenuie5()
 {
  var rightedge=document.body.clientWidth-event.clientX 
  var bottomedge=document.body.clientHeight-event.clientY 
  if (rightedge<ie5menu.offsetWidth) 
   ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth 
  else 
   ie5menu.style.left=document.body.scrollLeft+event.clientX 

  if (bottomedge<ie5menu.offsetHeight) 
   ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight 
  else 
   ie5menu.style.top=document.body.scrollTop+event.clientY 
   ie5menu.style.visibility="visible" 
  return false 
 }

 function hidemenuie5()
 {
  ie5menu.style.visibility="hidden"
 }

 function highlightie5()
 { 
  if(event.srcElement.className=="menuitems")
  {
   event.srcElement.style.cursor="hand"
   event.srcElement.style.backgroundColor="highlight"
   event.srcElement.style.color="white"
   if(display_url==1) window.status=event.srcElement.url
  }
  else
   event.srcElement.style.cursor="default"
 } 

 function lowlightie5()
 {
  if (event.srcElement.className=="menuitems")
  {
   event.srcElement.style.backgroundColor="" 
   event.srcElement.style.color="black" 
   window.status='' 
  }
 }
 function jumptoie5()
 {
  if(event.srcElement.className=="menuitems") window.location=event.srcElement.url
 }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -