Js对角线收缩,渐隐文字效果

时间:2014-08-05 10:52:39   收藏:0   阅读:329
<!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>对角线收缩,渐隐文字效果</title> 
<script type="text/javascript" src="/ajaxjs/jquery1.3.2.js"></script> 
<script type="text/javascript"> 
$(document).ready(function(){
   $("a").toggle(function(){
     $(".stuff").hide(‘slow‘);
   },function(){
     $(".stuff").show(‘fast‘);
   });
});
</script> 

</head> 
<body> 
<a href="#">
点此测试
</a> 
<div class="stuff">这是一段测试文字,点击上边的链接后,本段文字由右下向左上渐渐消失。</div>
</body> 
</html> 

 

Js对角线收缩,渐隐文字效果,布布扣,bubuko.com

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!