$(this).hide("slow");
代码如下:
<!DOCtypehtml PUBLIC "-//W3C//Dtdxhtml 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" />
<title>hello world</title>
<script type="text/javascript" src="http://www.CSSrAIn.cn/demo/JQuery.JS"></scrIPt>
<script type="text/JavaScript">
$(document).ready(function(){
$("a").click(function(){
$(this).hide("slow");
returnfalse;
});
});
</script>
</head>
<body>
<a href="http://www.jiangweishan.com">
Effects Module(效果模块)
现在,只要你点击超链接,超链接就会慢慢的消失。
“return false"表示保留默认行为,因此页面不会跳转。
</a>
<hr/>
<a href="http://www.baidu.com">我也是一个段落文本,单击我也弹出hello world .---单击我</a>
</body>
</html>
<html xmlns="HTTP://www.w3.org/1999/xhtml">
<head>
<meta http-eqUIv="Content-Type" content="text/html; charset=gb2312" />
<title>hello world</title>
<script type="text/javascript" src="http://www.CSSrAIn.cn/demo/JQuery.JS"></scrIPt>
<script type="text/JavaScript">
$(document).ready(function(){
$("a").click(function(){
$(this).hide("slow");
returnfalse;
});
});
</script>
</head>
<body>
<a href="http://www.jiangweishan.com">
Effects Module(效果模块)
现在,只要你点击超链接,超链接就会慢慢的消失。
“return false"表示保留默认行为,因此页面不会跳转。
</a>
<hr/>
<a href="http://www.baidu.com">我也是一个段落文本,单击我也弹出hello world .---单击我</a>
</body>
</html>
3、点击text图片消失







网友评论文明上网理性发言已有0人参与
发表评论: