说明: 凭空取菜单
效果: 运行后查看!
代码:
<table id="itemopen" class="box" style="display:none"> <tr> <td>弹出菜单</td> </tr> <tr> <td><a href="javascript:if(confirm('http://www.ntc.com.cn/ \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上. \n\n你想从服务器打开它吗?'))window.location='http://www.ntc.com.cn/'" tppabs="http://www.ntc.com.cn/" class="cc">网页特效</a></td> </tr> <tr> <td><a href="index.html" tppabs="http://www.ntc.com.cn/js/01/" class="cc">典型特效</a></td> </tr> <tr> <td><a href="index.html" tppabs="http://www.ntc.com.cn/js/02/" class="cc">状态栏</a></td> </tr> <tr> <td><a href="index.html" tppabs="http://www.ntc.com.cn/js/03/" class="cc">游戏类</a></td> </tr> <tr> <td><a href="index.html" tppabs="http://www.ntc.com.cn/js/04/" class="cc">页面背景</a></td> </tr> <tr> <td><a href="index.html" tppabs="http://www.ntc.com.cn/js/05/" class="cc">页面特效</a></td> </tr> <tr> <td><a href="index.html" tppabs="http://www.ntc.com.cn/js/06/" class="cc">页面导航</a></td> </tr> </table> </center></div><!-- End of Popup Menu --> <script language="JavaScript"> document.onclick = popUp function popUp() { newX = window.event.x + document.body.scrollLeft newY = window.event.y + document.body.scrollTop menu = document.all.itemopen if ( menu.style.display == ""){ menu.style.display = "none" } else { menu.style.display = ""} menu.style.pixelLeft = newX - 50 menu.style.pixelTop = newY - 50 } </script> <p align="center"><font size="5">凭空取菜单</font></p> <hr> <p align="center">别以为这里什么都没有,<font color="yellow">在任意位置单击鼠标左键看看。</font></p> <p align="center"> </p> <p align="center"> </p> <p align="center"> </p> </body> </html>
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18