文本框鼠标感应变色效果

2个月前 (03-22 10:24)阅读68回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值4189
  • 级别管理员
  • 主题837
  • 回复2
楼主

表单鼠标感应变色效果,当用户的鼠标经过文本框是变色,可根据自己的需求来自定义图片。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效">
<meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。">
<title>文本框鼠标感应变色效果_武鸣人</title>
<style type="text/css">
*{margin:0;padding:0;}
img{border:0;}
#wuming_ren{margin:20px auto;width:960px;overflow:hidden;}
#frmsearch{margin:0 auto;width:345px;height:142px;overflow:hidden;}
#frmsearch h2{margin:0 auto;width:100%;height:23px;line-height:23px;overflow:hidden;text-indent:-9999px;font-size:14px;color:#FFF;}
#frmsearch input{float:left;width:290px;height:22px;margin:24px 25px 0 30px;display:inline;border:0;}
#frmsearch button{float:left;width:70px;height:27px;margin:29px 0 0 250px;cursor:pointer;display:inline;text-indent:-9999px;clear:both;border:0;background:none;}
._wuming_ren{background:url(/img/20240322_www_wuming_ren_1.gif) 0 0 no-repeat;}
.frmsearch-active{background:url(/img/20240322_www_wuming_ren_1.gif) 0 -142px no-repeat;}
</style>
</head>
<body>
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
<div id="wuming_ren">
  <form name="frmsearch" class="_wuming_ren" id="frmsearch" action="" method="post">
    <h2>查找</h2>
    <input type="text" id="keyword" value="">
    <button type="submit" id="btnsearch">查找</button>
  </form>
</div>
<script type="text/javascript">
(function(){
var D = document, frm = D.getElementById('frmsearch');
if(!frm){
return false;
}
frm.onmouseover = function(){
this.className = 'frmsearch-active';
};
frm.onmouseout = function(){
this.className = '_wuming_ren';
};
})();
</script>
</body>
</html>


0
0
收藏0
回帖

文本框鼠标感应变色效果 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息