Total members 11894 |It is currently Sun Nov 24, 2024 3:11 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





slide down using JQuery
Code:

<html>
<
head>
<
title>Slide Down 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").slideDown(4000);
  });
    $("#div1").click(function(){
    $("#div3").slideDown(4000);
  });
  $("#stop").click(function(){
    $("#div1").stop();
  });
});
</script>
 
<style type="text/css"> 
#divWrap{
  width:100px;
  height:400px;
  background-color:#15fe11;
  border:solid 1px #1214c3;
}
#div1,#div2,#div3
{
padding:5px;
text-align:center;
 
border:solid 1px #c3c3c3;
}
#div1,#div3
{
padding:20px;
display:none;
}
</style>
</head>
<body>
 
<div id="divWrap">
<div id="div2"><a href="#">Show Hidden</a></div>
<div id="div1"><a href="#">Link1</a></div>
<div id="div3"><a href="#">Link2</a></div>
</div>
<button class="stop">Stop Div1</button>
</body>
</html>






_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : slide down using JQuery
 Slide UP-Down Chaining     -  
 image slide show     -  
 java slide not comming up     -  
 html slide show images     -  
 Slide automatically-specific speed to a determined position     -  
 accordion using JQuery     -  
 How to start JQuery     -  
 Using firebug with JQuery     -  
 JQuery Animations     -  
 Stop animation in JQuery     -  



Topic Tags

JQuery Slide
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com