无为清净楼资源网 Design By www.qnjia.com
复制代码 代码如下:
$(this).hide("slow");

复制代码 代码如下:
<!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" />
<title>hello world</title>
<script type="text/javascript" src="/UploadFiles/2021-04-02/jquery.js"><script type="text/javascript">
$(document).ready(function(){
$("a").click(function(){
$(this).hide("slow");
return false;
});
});
</script>

</head>

<body>
<a href="http://www.cssrain.cn">
Effects Module(效果模块)
现在,只要你点击超链接,超链接就会慢慢的消失。
“return false"表示保留默认行为,因此页面不会跳转。
</a>
<hr/>
<a href="http://www.baidu.com">我也是一个段落文本,单击我也弹出hello world .---单击我</a>
</body>
</html>

3、点击text图片消失
Jquery的hide及toggle方法让超链接慢慢消失
标签:
超链接慢慢消失,hide方法,toggle方法

无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com

更新日志

2024年10月04日