|
|
| 点击左键弹出菜单 |
| 整理:Cnwshow.Com 来源:Internet 整理时间:2008-5-11 |
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>点击左键弹出菜单</title>
<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>
</head>
<body>
<table id="itemopen" class="box" style="display:none" height="128">
<tr>
<td height="12">弹出菜单</td>
</tr>
<tr>
<td height="12"><a href="#" class="cc">网页特效库</a></td>
</tr>
<tr>
<td height="12"><a href="#" class="cc">整站模板</a></td>
</tr>
<tr>
<td height="12"><a href="#" class="cc">背景特效</a></td>
</tr>
<tr>
<td height="12"><a href="#" 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>
</body>
</html>
|
|
|
|
|
|