鼠标移上和取开的效果

原创 2019-05-22 15:32:10 235
摘要:<html><head><script type="text/javascript">function mouseOver()  {  document.b1.style.background ="skyblue"  }function mouseOut()  {  &nb

<html>
<head>
<script type="text/javascript">
function mouseOver()
 {
 document.b1.style.background ="skyblue"
 }
function mouseOut()
 {
  document.b1.style.background ="green"  }
</script>
</head>

<body>
<a href=""  target="_blank">
<img border="0"" name="b1" onmouseOver="mouseOver()"
onmouseOut="mouseOut()" />
</a>
</body>
</html>


属性需要对单词进行理解,结合函数实现自己需要的效果,常用的onload、onmouseover、onclick等要记熟;

发布手记

热门词条

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号