本文讲解鼠标点击,经过,鼠标离开事件的htm实现方法,以下是完整html实例代码
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <script type="text/javascript"> var a,b,c; a=100;b=200; c=a;a=b;b=c; console.log(a,b); alert(a+" "+b); window.onload=function(){ var sj; sj=document.getElementById("a"); sj.style.color="pink"; sj.style.width="100px"; sj.style.lineHight="30px"; sj.style.lineHight="30px"; sj.style.textAlign="center"; sj.style.background="purple"; } </script> </head> <body> <p onclick="alert('php中文网html实例')">点击有惊喜!</p> <marquee onmouseover="this.stop()"onmouseout="this.start()">我是php中文网(www.php.cn)!</marquee> <p onclick="alert('别人都叫我小猪')" id="a">请叫我钟老师</p> </body> </html>
鼠标点击,经过,鼠标离开事件显示效果:
以上是鼠标点击,经过,鼠标离开事件完整html实例代码(图)的详细内容。更多信息请关注PHP中文网其他相关文章!