<html>
<head>
<script type="text/javascript" class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="http://ajax.googleapis.com/ajax/libs
/jquery/1.4.0/jquery.min.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function(){
$(".flip").click(function(){
$(".panel").slideToggle(5000);
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#test").click(function(){
$(this).fadeOut(4000);
});
});
</script>
</head>
<body>
<div id="test" >CLICK ME AWAY!</div>
<p>If you click on the box above, it will be removed.</p>
</body>
</html>
用fadeout(speed,callback);函数实现淡化消失,用fadeto(speed,callback);函数实现淡化到指定透明度
共同学习,写下你的评论
评论加载中...
作者其他优质文章