· 信息发布
· 广告联系
· 联系站长
动态空间 | 静态空间 | 免费域名 | 免费邮箱 | 免费论坛 | 流量统计 | 免费QQ信息 | 免费硬盘 | 中奖赚钱赠品 | 免费博客 | 免费相册 | 免费翻译 | 免费广告
免费帐号 | 免费留言本 | 免费聊天室 | 免费电话短信 | 免费游戏相关 | 免费杀毒软件 | 更多免费 | 免费影音 | 网站运营 | 网络编程 | 联盟资讯 | 网站制作
推荐资源
24小时热门资源
特别推荐
一周热门资源
信息阅读

右键单击的菜单特殊效果


来源:久留免费网 编辑:blmbolon 日期:2008-3-2 21:39:59 人气:
 
更多免费资源请关注久留免费网:http://www.96ew.com/

代码提示:将下面的代码复制到〈BODY〉与〈/BODY〉中,点击代码可查看演示效果:

//修改下面的样式none为子菜单,over为鼠标经过的样式
 <STYLE>BODY {
 COLOR: black; FONT-SIZE: 9pt
}
TD {
 COLOR: black; FONT-SIZE: 9pt
}
A {
 COLOR: black; FONT-SIZE: 9pt
}
.none {
 BACKGROUND: #d9d9d9; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; PADDING-TOP: 2px
}
.over {
 BACKGROUND: #707888; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; COLOR: white; PADDING-TOP: 2px
}
</STYLE>

//修改下面的链接及名称
<DIV id=plane   onmousedown=down=true;divleft=event.clientX-parseInt(plane.style.left);divtop=event.clientY-parseInt(plane.style.top)
      onmouseup=down=false
      style="CURSOR: hand; DISPLAY: none; LEFT: 100px; POSITION: absolute; TOP: 100px">
      <DIV align=center class=none onmouseover=menuin();init()
      style="BACKGROUND: #707888; COLOR: white; CURSOR: default; HEIGHT: 19px; LEFT: 150px; POSITION: absolute; TOP: 33px; WIDTH: 100px; Z-INDEX: 1">右键菜单</DIV>//修改主菜单背景颜色
      <DIV align=center class=none id=item1 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 50px; POSITION: absolute; TOP: 55px; WIDTH: 99px; Z-INDEX: 2"><a href="http://www.96ew.com" >久留免费网</a></DIV>
      <DIV align=center class=none id=item2 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 250px; POSITION: absolute; TOP: 77px; WIDTH: 99px; Z-INDEX: 3"><a href="http://www.96ew.com" >久留免费网</a></DIV>
      <DIV align=center class=none id=item3 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 50px; POSITION: absolute; TOP: 99px; WIDTH: 99px; Z-INDEX: 4"><a href="http://www.96ew.com" >久留免费网</a></DIV>
      <DIV align=center class=none id=item4 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 250px; POSITION: absolute; TOP: 121px; WIDTH: 99px; Z-INDEX: 5"><a href="http://www.96ew.com" >久留免费网</a></DIV> 
      <DIV align=center class=none id=item5 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 50px; POSITION: absolute; TOP: 143px; WIDTH: 99px; Z-INDEX: 6"><a href="http://www.96ew.com" >久留免费网</a></DIV></DIV>
      <SCRIPT language=vbs>
dim down,divleft,divtop,timelinestart,timelinestop,tidone,tidtwo,tidtree
down=false
timelinestart=0
timelinestop=0
sub document_onmousedown
if window.event.button=2 then
plane.style.display=""
plane.style.left=window.event.clientx-153
plane.style.top=window.event.clienty-35
end if
end sub
sub document_onmousemove
if down then
plane.style.left=window.event.clientx-divleft
plane.style.top=window.event.clienty-divtop
end if

end sub
sub document_ondargstart
window.event.returnvalue=false
end sub
function menuin()
cleartimeout(tidtree)
end function
sub document_onclick
tidtree=settimeout("outit()",200)
end sub
function init()
if timelinestart<>5 then
cleartimeout(tidtwo)
item1.style.pixelLeft=item1.style.pixelLeft+20
item1.filters.alpha.opacity=item1.filters.alpha.opacity+20
item2.style.pixelLeft=item2.style.pixelLeft-20
item2.filters.alpha.opacity=item2.filters.alpha.opacity+20
item3.style.pixelLeft=item3.style.pixelLeft+20
item3.filters.alpha.opacity=item3.filters.alpha.opacity+20
item4.style.pixelLeft=item4.style.pixelLeft-20
item4.filters.alpha.opacity=item4.filters.alpha.opacity+20
item5.style.pixelLeft=item5.style.pixelLeft+20
item5.filters.alpha.opacity=item5.filters.alpha.opacity+20
timelinestart=timelinestart+1
else
cleartimeout(tidone)
end if
tidone=settimeout("init()",1)
end function
function outit()
if timelinestart<>0 then
cleartimeout(tidone)
item1.style.pixelLeft=item1.style.pixelLeft-20
item1.filters.alpha.opacity=item1.filters.alpha.opacity-20
item2.style.pixelLeft=item2.style.pixelLeft+20
item2.filters.alpha.opacity=item2.filters.alpha.opacity-20
item3.style.pixelLeft=item3.style.pixelLeft-20
item3.filters.alpha.opacity=item3.filters.alpha.opacity-20
item4.style.pixelLeft=item4.style.pixelLeft+20
item4.filters.alpha.opacity=item4.filters.alpha.opacity-20
item5.style.pixelLeft=item5.style.pixelLeft-20
item5.filters.alpha.opacity=item5.filters.alpha.opacity-20
timelinestart=timelinestart-1
else
cleartimeout(tidtwo)
plane.style.display="none"
exit function
end if
tidtwo=settimeout("outit()",1)
end function
</SCRIPT>

 

 如果您发现本免费资源已过期,请点击报告错误提交过期信息,谢谢!

  • 上一篇文章:

  • 下一篇文章:

  •   关键字:右键,单击,菜单,特殊效果
    久留免费网