没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
1页
本文实例讲述了jQuery实现感应鼠标动画效果自动伸长的输入框。分享给大家供大家参考。具体实现方法如下: 代码如下:<!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=utf-8″ /
资源详情
资源评论
资源推荐
jQuery实现感应鼠标动画效果自动伸长的输入框实例实现感应鼠标动画效果自动伸长的输入框实例
本文实例讲述了jQuery实现感应鼠标动画效果自动伸长的输入框。分享给大家供大家参考。具体实现方法如下:
代码如下:<!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=utf-8″ />
<title>jQuery实现感应鼠标动画效果自动伸长的输入框</title>
<script type=”text/javascript” src=”/images/jquery-1.4.2.min.js”></script>
<style type=”text/css”>
body
{
margin:0; padding:0; font-size:12px;
}
a:link {
color:#1553a9; text-decoration: none;
}
a:visited {
text-decoration:none; color: #1553a9;
}
a:hover {
text-decoration:none; color: #f46662;
}
a:active {
text-decoration: none; color:#f46662;
}
#main
{
width:500px; margin:0 auto; margin-top:100px;
}
#de
{
display:block;width:100px; height:30px; line-height:30px; float:right; border:#b7b7b7 1px solid; padding-left:5px; border-
right:0;
}
#go
{
width:30px; float:right;height:22px; border:#b7b7b7 1px solid; border-left:0; padding-top:10px; padding-left:15px;
background-color:#464646; cursor:pointer; color:#FFFFFF;
}
</style>
<script type=”text/javascript”>
$(function(){
$(“#de”).mouseover(function(){
$(“#de”).animate({“width”:”250px”});
}).mouseout(function(){
$(“#de”).animate({“width”:”100px”});
});
});
</script>
</head>
<body>
<div id=”main”>
<div id=”ss”><div id=”go”>→</div><input type=”text” id=”de”/></div>
</div>
</body>
</html>
希望本文所述对大家的jQuery程序设计有所帮助。
weixin_38716563
- 粉丝: 5
- 资源: 871
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0