Home >Web Front-end >JS Tutorial >Display html menu at any position_Typical special effects

Display html menu at any position_Typical special effects

WBOY
WBOYOriginal
2016-05-16 19:19:541495browse

Script description:

Add the following code into the

area











  

    

 

 

 

 

 

 

 

    
弹出菜单
本站首页
My求职信
网上赚钱
免费资源
更多连接
更多连接
更多连接






<script><!-- <br><br>document.onclick = popUp <br><br> <br><br>function popUp() { <br><br>newX = window.event.x + document.body.scrollLeft <br><br>newY = window.event.y + document.body.scrollTop <br><br>menu = document.all.itemopen <br><br> if ( menu.style.display == ""){ <br><br> menu.style.display = "none" } <br><br> else { <br><br> menu.style.display = ""} <br><br> <br><br> menu.style.pixelLeft = newX - 50 <br><br> menu.style.pixelTop = newY - 50 <br><br>} <br><br>//--> <br><br> <br><br> <br><br></script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn