时间:2021-07-01 10:21:17 帮助过:149人阅读
<!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('Gxl网html实例')">点击有惊喜!</p> <marquee onmouseover="this.stop()"onmouseout="this.start()">我是Gxl网(www.gxlcms.com)!</marquee> <p onclick="alert('别人都叫我小猪')" id="a">请叫我钟老师</p> </body> </html>
鼠标点击,经过,鼠标离开事件显示效果:
以上就是鼠标点击,经过,鼠标离开事件完整html实例代码(图)的详细内容,更多请关注Gxl网其它相关文章!