Switch to full style
JQuery Examples
Post a reply

Slide UP-Down Chaining

Mon Dec 31, 2012 1:15 am

Sliding Up/ Down - Chaining
html code
<html>
<head>
<title>Slide UP-Down Chaining animation</title>

<!--
 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
 Note you can download the JQuery package instead of using Google version. --> 
<script src="jquery-1.8.3.js"></script>
<script> 
$(document).ready(function(){
  $("#div2").click(function(){
    $("#div1").slideUp(2000)
      .slideDown(2000);
  });
    $("#div1").click(function(){
    $("#div3").slideUp(2000)
      .slideDown(2000);
  });

  
});
</script>
 
<style type="text/css"> 
#divWrap{
  width:100px;
  height:300px;
  background-color:#15AeAf;
  border:solid 1px #CCCCCC;
}
#div1,#div2,#div3
{
padding:6px;
text-align:center;
  background-color:#A51eAf;
border:solid 1px #c3c3c3;
}
#div1,#div3
{
padding:20px;
display:none;
}
a{
  color:#FFFF76;
}
</style>
</head>
<body>
 
<div id="divWrap">
<div id="div2"><a href="#">Slide Up + Down</a></div>
<div id="div1"><a href="#">Slide </a></div>
<div id="div3"><a href="#">Link</a></div>
</div>

</body>
</html>




Post a reply
  Related Posts  to : Slide UP-Down Chaining
 slide down using JQuery     -  
 image slide show     -  
 java slide not comming up     -  
 html slide show images     -  
 Slide automatically-specific speed to a determined position     -  

Topic Tags

JQuery Slide