很好的jquery实例效果
<!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=utf-8" />
<title>图片的淡入淡出</title>
<script type="text/javascript" language="javascript" src="../../jquery-1.7.1.min.js">
</script>
<script language="javascript">
$(document).ready(function(){
$("#btn1").toggle(function(){
$("img").slideUp("slow");
},function(){
$("img").slideDown("slow");
});
});
</script>
</head>
<body>
<img src="../../../images/001.jpg"><br>
<input type="button" value="图片显示/隐藏" id="btn1">
</body>
</html>
jquery实现图片的淡入淡出
最新推荐文章于 2023-07-19 09:09:17 发布