<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript" src="jquery-1.4.2.js"></script>
<style type="text/css">
.no1{
font-size:14px;
color:red;
}
.no2{
font-style:italic;
font-weight:bold;
}
</style>
<script type="text/javascript">
$(function(){
$("#btn1").click(function(){
$("p").addClass("no1");
});
$("#btn2").click(function(){
$("p").addClass("no2");
});
$("#btn3").click(function(){
$("p").attr("Class","no2");
});
$("#username").focus(function(){
var content = $(this).val();
if(content == "username"){
$(this).val("");
}
});
$("#username").blur(function(){
var content = $(this).val();
if(content == ""){
$(this).val("username");
}
});
})
</script>
</head>
<body>
<p>hello world</p>
<input type="button" id="btn1" value="hello"/>
<input type="button" id="btn2" value="world"/>
<input type="button" id="btn3" value="welcome"/><br/>
<input type="text" id="username" value="username"/>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
jQuery-1.6.2.js+jQuery-1.4.2.js +笔记
共11个文件
html:8个
js:3个
5星 · 超过95%的资源 需积分: 3 27 下载量 190 浏览量
2011-08-11
10:04:47
上传
评论
收藏 155KB RAR 举报
温馨提示
jquery-1.6.2.js 源文件 还有 自己学习的时候写的小例子 分享一下
资源推荐
资源详情
资源评论
收起资源包目录
jQuery.rar (11个子文件)
jQuery
test8.html 780B
jquery-1.4.4.js 179KB
test2.html 1017B
jquery-1.4.2.js 160KB
test6.html 1KB
test7.html 1KB
test5.html 1KB
jquery-1.6.2.js 231KB
test4.html 1KB
test3.html 896B
test1.html 762B
共 11 条
- 1
资源评论
- renzhijie40042012-08-01很新的jquery类库,很详尽
- 竹4122013-09-30还不错,蛮好的
yws1515
- 粉丝: 10
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功