欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Jquery的hide及toggle方法讓超鏈接慢慢消失

 更新時(shí)間:2013年09月06日 11:10:27   作者:  
點(diǎn)擊超鏈接,超鏈接就會(huì)慢慢的消失,本文采用jquery中的hide方法及toggle方法實(shí)現(xiàn),喜歡的朋友可以參考下
復(fù)制代碼 代碼如下:

$(this).hide("slow");

復(fù)制代碼 代碼如下:

<!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="http://www.cssrain.cn/demo/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("a").click(function(){
$(this).hide("slow");
return false;
});
});
</script>

</head>

<body>
<a >
Effects Module(效果模塊)
現(xiàn)在,只要你點(diǎn)擊超鏈接,超鏈接就會(huì)慢慢的消失。
“return false"表示保留默認(rèn)行為,因此頁(yè)面不會(huì)跳轉(zhuǎn)。
</a>
<hr/>
<a >我也是一個(gè)段落文本,單擊我也彈出hello world .---單擊我</a>
</body>
</html>

3、點(diǎn)擊text圖片消失

相關(guān)文章

最新評(píng)論