找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 1253|回复: 1

大哥又改了个右键菜单,这个放主页里蛮好,你看例子、,点右键看下:)

[复制链接]
发表于 2001-7-2 21:36:31 | 显示全部楼层 |阅读模式
[html]<SCRIPT language=JavaScript>
<!-- // RightClickMenu
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.backgroundColor="highlight"
event.srcElement.style.color="white"
}
}
function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="red"
}
}
function jumptoie5(){
if (event.srcElement.className=="menuitems"){
if (event.srcElement.url != ''){
if (event.srcElement.getAttribute("target")!=null)
window.open(event.srcElement.url,event.srcElement.getAttribute("target"))
else
window.location=event.srcElement.url
}
}
}
// -->
</SCRIPT>
<STYLE type=text/css>.cMenu {
BACKGROUND-COLOR: #ffffff; BACKGROUND-IMAGE: url(http://www.chinarenhome.com/3.jpg); BORDER-BOTTOM: red 1px solid; BORDER-LEFT: red 1px solid; BORDER-RIGHT: red 1px solid; BORDER-TOP: red 1px solid; COLOR: #000000; CURSOR: hand; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px; color:red;FONT-WEIGHT: normal; LINE-HEIGHT: 20px; POSITION: absolute; VISIBILITY: hidden; WIDTH: 110px
}
.menuitems {
PADDING-LEFT: 15px; PADDING-RIGHT: 10px
}
</STYLE>
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY bgColor=#e0e0e0>
<RIGHTCLICK><!--[if IE]>
<DIV class=cMenu id=ie5menu onclick=jumptoie5() onmouseout=lowlightie5()
onmouseover=highlightie5()>
<DIV class=menuitems
url="http://www.wwwfox.net"><marquee width="70" height="16">无忧启动,一碟在手,装机维护,轻松搞定。</marquee></DIV>
<hr width="95%" size="1" color="red">
<DIV class=menuitems
url="http://www.wwwfox.net" title="无忧社区">无忧首页</DIV>
<DIV class=menuitems
url="http://www.wwwfox.net/cgi-bin/leoboard.cgi">无忧论坛</DIV>
<DIV class=menuitems
url="http://www.wwwfox.net/readme.htm">使用帮助</DIV>
<DIV class=menuitems
url="http://www.wwwfox.net/example/0000.htm">启动演示</DIV>
<hr width="95%" size="1" color="red">
<DIV class=menuitems
url="http://www.wwwfox.net/example/0000.htm">光盘刻录</DIV>
<DIV class=menuitems url="mailto:webmaster@wwwfox.net">给我写信</DIV><![endif]-->
<SCRIPT language=JavaScript>
<!--
if (document.all&&window.print){
ie5menu.className="cMenu"
document.oncontextmenu=showmenuie5
document.body.onclick=hidemenuie5
}
//-->
</SCRIPT>
</RIGHTCLICK>[/html]
发表于 2001-7-3 01:31:45 | 显示全部楼层

大哥又改了个右键菜单,这个放主页里蛮好,你看例子、,点右键看下:)

哇,这个右键效果很不错,有空我会加进首页去。
谢谢呵!
:em30:    :em30:    :em30:
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1|闽公网安备35020302032614号 )

GMT+8, 2026-8-6 07:32

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表