jquery-淡入淡出
<!DOCTYPEhtml>
<html>
<head>
<metacharset="utf-8"/>
<title></title>
</head>
<body>
<headerid="tab"style="height:50px;width:200px;background-color:red;display:none;"></header>
<inputid="button"type="submit"value="显示"/>
<inputid="button1"type="submit"value="隐藏"/>
<scripttype="text/javascript"src="js/jquery-1.8.0.min.js"></script>
<script>
$(document).ready(function(){
dandan=$("#tab");
$("#button").click(function(){
alert("777777777777");
dandan.fadeIn(3000);
});
$("#button1").click(function(){
alert("kkkkkk");
dandan.fadeOut(3000);
})
});
</script>
</body>
</html>
相关推荐
donghongbz 2020-06-04
donghongbz 2020-01-16
小仙儿 2019-10-22
hubing 2016-03-05
nicepainkiller 2019-06-27
byn0 2015-06-29
88403861 2014-11-26
yezi 2019-06-21
崔博伦一路有你 2011-07-21
83453065 2011-04-18
天天无用 2011-04-03
Haoroid 2018-01-11
83493467 2018-01-05
LeoNature 2017-02-05
cithegod 2016-12-20
87413165 2017-09-20