您的位置:首页 > Web前端 > JavaScript

JavaScript鼠标移入移出时颜色变化代码

2015-08-31 11:21 274 查看
判断鼠标在网页的某个区域移动

转自http://jingyan.baidu.com/article/ac6a9a5e5c040b2b653eac25.html,这里面还有些其他有用的操作

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>鼠标移入移出时颜色变化代码</title>
</head>
<body>
<input type="submit" value="把鼠标移动这里" name="btn1" onMouseOut=this.style.color="blue"
onMouseOver=this.style.color="red" >
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: