jquery 의 간단 한 div 디 스 플레이 와 숨겨 진 필터 demo(공유)


<!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 src="jquery_last.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(  function(){});
function hiden(){
$("#divObj").hide();//hide() , , ( ) hide(2000) 2000 , slow,fast
}
function slideToggle(){
$("#divObj").slideToggle(2000);// , , , ,
}
function show(){
$("#divObj").show();// ,
}
function toggle(){
$("#divObj").toggle(2000);// , ,
}
function slide(){
$("#divObj").slideDown();//
}
</script>
</head>
<body>
<h3>div </h3>
<input type="button" value=" " onclick="hiden()"/>
 <input type="button" value=" " onclick="show()"/>
 <input type="button" value=" 2" onclick="slide()"/>
 <input type="button" value=" " onclick="slideToggle()"/>
  <input type="button" value=" " onclick="toggle()"/>
<div id="divObj" style="display:none">
        1. <br/>
        2. <br/>
        3. <br/>
        4. <br/>
        5. <br/>
        6. <br/>
        7. <br/>
        8. <br/>
        9. <br/>
        0. <br/>
    </div>
</body>
</html>

좋은 웹페이지 즐겨찾기