|
作者: winlogin [winlogin] 论坛用户 | 登录 |
点右键看一下,做得有点漂亮!
http://3721xhh.free.21xyz.net/ReadNews.asp?NewsID=73 [此贴被 winlogin(winlogin) 在 02月11日17时55分 编辑过] |
地主 发表时间: 04-02-11 17:54 |
回复: zybzc [zybzc] 论坛用户 | 登录 |
恩 是有性格 对稍微大型的网站有用 我喜欢 |
B1层 发表时间: 04-02-11 20:05 |
回复: Idof [idof] 论坛用户 | 登录 |
什么东西 我怎么打不开 |
B2层 发表时间: 04-02-11 21:25 |
回复: xiemo [xiemo] 论坛用户 | 登录 |
我也喜欢里边的鱼借两条.张大了还你一条.白帮你养大.哈哈 我邮件 love1235@163.com 发过去哦..哈哈` |
B3层 发表时间: 04-02-12 08:55 |
回复: lqfrla [lqfrla] 论坛用户 | 登录 |
很好啊 |
B4层 发表时间: 04-02-12 11:30 |
回复: jsj0132 [jsj0132] 论坛用户 | 登录 |
很好玩啊 请问有没有代码呢? 我想也在主页上弄一个谢了/ |
B5层 发表时间: 04-02-12 16:11 |
回复: oti [oti] 论坛用户 | 登录 |
仿真右键菜单 摘自 中国CCB论坛 oti 2003-10-14.14:57 http://www.sun126.com/bbs/ccb/index.cgi 仿真右键菜单 代码: <style> <!-- 菜单CSS样式表 --> <!-- BODY {FONT-SIZE: 9pt; line-height:17px} TD {FONT-SIZE: 9pt} .skin0{ position:absolute; width:200px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden; } .skin1{ cursor: default; font: menutext; position: absolute; width: 130px; background-color: menu; border: 1 solid buttonface; visibility:hidden; border: 2 outset buttonhighlight; } .menuitems{ padding-left:15px; padding-right:10px; } --> </style> <!-- 菜单代码开始 --> <script language="JavaScript1.2"> //set the skin of the menu (0 or 1, with 1 rendering a default Windows menu like skin) var menuskin=1 //set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar var display_url=0 function showmenuie5(){ //Find out how close the mouse is to the corner of the window var rightedge=document.body.clientWidth-event.clientX var bottomedge=document.body.clientHeight-event.clientY //if the horizontal distance isn't enough to accomodate the width of the context menu if (rightedge<ie5menu.offsetWidth) //move the horizontal position of the menu to the left by it's width ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth else //position the horizontal position of the menu where the mouse was clicked ie5menu.style.left=document.body.scrollLeft+event.clientX //same concept with the vertical position 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" if (display_url==1) window.status=event.srcElement.url } } 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"){ if (event.srcElement.getAttribute("target")!=null) window.open(event.srcElement.url,event.srcElement.getAttribute("target")) else window.location=event.srcElement.url } } </script> <!--[if IE]> <div id="ie5menu" class="skin0" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()"> <div class="menuitems" url="http://www.oti.freehost.cn">一二网络</div> <hr> <div class="menuitems" url="http://www.oti.freehost.cn/ctb/index.php">一二网络论坛</div> <div class="menuitems" url="http://www.oti.freehost.cn/ctb/index.php?mods=forumdisplay&forumid=3">免费资源</div> <div class="menuitems" url="http://www.oti.freehost.cn/ctb/index.php?mods=forumdisplay&forumid=4">网站建设</div> <div class="menuitems" url="http://www.oti.freehost.cn/ctb/index.php?mods=forumdisplay&forumid=5">代码交流</div> <div class="menuitems" url="http://www.oti.freehost.cn/ctb/index.php?mods=forumdisplay&forumid=1">聊天灌水</div> <hr> <div class="menuitems" url="http://www.oti.freehost.cn/ctb/index.php?mods=forumdisplay&forumid=2">[意见和建议]</div> <![endif]--> <script language="JavaScript1.2"> if (document.all&&window.print){ if (menuskin==0) ie5menu.className="skin0" else ie5menu.className="skin1" document.oncontextmenu=showmenuie5 document.body.onclick=hidemenuie5 } </script> </div> <!-- 菜单代码结束 --> ========================================================================================================================================================================== 查看其源代码: <STYLE type=text/css>.cmenu { BORDER-RIGHT: #339933 1px solid; BORDER-TOP: #339933 1px solid; VISIBILITY: hidden; BORDER-LEFT: #339933 1px solid; WIDTH: 108px; CURSOR: default; COLOR: #000000; BORDER-BOTTOM: #339933 1px solid; POSITION: absolute; BACKGROUND-COLOR: #ffffff } .menuitems { PADDING-RIGHT: 4px; PADDING-LEFT: 4px } </STYLE> <RIGHTCLICK> <TABLE class=cMenu id=ie5menu onmouseover=highlightie5() onclick=jumptoie5() onmouseout=lowlightie5() width=100 background=js/menu.gif border=0> <TBODY> <TR> <TD width=31><IMG src="js/home.gif"></TD> <TD class=menuitems width=70 url="/">返回首页</TD></TR> <TR> <TD width=31><IMG src="js/refresh.gif"></TD> <TD class=menuitems onclick=javascript:location.reload() width=70 url="#">刷新页面</TD></TR> <TR> <TD width=31><IMG src="js/flash.gif"></TD> <TD class=menuitems width=70 url="down/">下载园地</TD></TR> <TR> <TD width=31><IMG src="js/music.gif"></TD> <TD class=menuitems width=70 url="music/">音乐小屋</TD></TR> <TR> <TD width=31><IMG src="js/help.gif"></TD> <TD class=menuitems width=70 url="news/news.asp">实事新闻</TD></TR> <TR> <TD width=31><IMG src="js/top.gif"></TD> <TD class=menuitems url="guestbook/">给我留言</TD></TR></TBODY></TABLE><RIGHTCLICK> |
B6层 发表时间: 04-02-12 20:42 |
回复: saman [saman] 论坛用户 | 登录 |
不错 |
B7层 发表时间: 04-02-12 21:41 |
回复: jsj0132 [jsj0132] 论坛用户 | 登录 |
太好了, |
B8层 发表时间: 04-02-13 16:13 |
回复: zqt123 [zqt123] 论坛用户 | 登录 |
bucuo |
B9层 发表时间: 04-02-13 16:41 |
回复: newmyth21 [newmyth21] 论坛用户 | 登录 |
有点意思! |
B10层 发表时间: 04-02-13 18:20 |
回复: q70213526 [q70213526] 版主 | 登录 |
|
B11层 发表时间: 04-02-14 11:00 |
回复: Killu [collimator] 论坛用户 | 登录 |
骗子骗子骗子骗子………………………… |
B12层 发表时间: 04-05-22 16:59 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号