|
说明: 凭空取菜单
效果:
运行后查看!
代码:
<html>
<head>
<title>凭空取菜单 网教中国教学网</title>
<meta name="keywords"
content="popmenu,pop,navigation,navigator,menu,菜单,导航,导航菜单,弹出式,弹出,弹出菜单">
<meta name="description"
content="非常独特的弹出式菜单导航脚本,在页面的任意位置使用左键单击都可以弹出菜单。">
<style type="text/css">
body { font: 9pt "宋体"; margintop: 0px ; color:
#ffffff; background: #000000}
a. { font: 9pt "宋体"; cursor: hand; font-size:
9pt ; color: #ffffff; text-decoration: none }
a:active { font: 9pt "宋体"; cursor: hand; color:
#FF0033 }
a.cc:hover { font: 9pt "宋体"; cursor: hand; color:
#FF0033}
.box { font: 9pt "宋体"; position: absolute; background:
#000000 }
</style>
<style fprolloverstyle>A:hover {color: #000000}
</style>
</head>
<body marginwidth="0" marginheight="0"
topmargin="0" link="#FFFFFF" vlink="#FFFFFF"
bgcolor="#008000">
<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/" target="_blank">
</a>
<p align="center"> </p>
<div align="center"><center>
<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>
|