Home > Web Front-end > JS Tutorial > Add special effects to hyperlinks to display prompt information when the mouse moves and move with the mouse_javascript skills

Add special effects to hyperlinks to display prompt information when the mouse moves and move with the mouse_javascript skills

WBOY
Release: 2016-05-16 17:19:50
Original
1531 people have browsed it

复制代码 代码如下:




New Document

<script> <br>var c$={}; <br>var w$=function(s){document.write(s);} <br>var o$=function(id){return document.getElementById(id);} <br>w$("<div id="ts" style="position:absolute;background-color:#FFFFE6;font-size: 12px;padding: 3px; border: 1px solid #FFCC99;display:none"></div>"); <br><br>c$.mmove=function(o,s){ <br>//alert(typeof(s)); <br>var evt=event||window.event; <br>var x=evt.clientX 5; <br>var y=evt.clientY 20; <br>o$("ts").style.left=x "px"; <br>o$("ts").style.top=y "px"; <br>if(s==""||typeof(s)=="undefined"){ <br>o$("ts").innerHTML=o.innerHTML; <br>}else{ <br>o$("ts").innerHTML=s <br>} <br>o$("ts").style.display=""; <br>} <br>c$.mout=function(){ <br>o$("ts").style.display="none"; <br>} <br></script>


分析



source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template