Total members 11895 |It is currently Tue Dec 03, 2024 6:46 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Slow and fast: hide, show and toggle effects
Code:

<html>
<
head>
<
title>Hide, show and toggle</title>
<
script src="jquery-1.8.3.js"></script>
<script>
// Waits until the all document is loaded.
$(document).ready(function(){
 
 
  // hide elements with different speed.
 $("#hide").click(function(){
  $("#mark1").hide(1000);
  $("#mark2").hide(1000);
  $("#mark3").hide(1000);
  $("#mark4").hide(1000);
    
});
  // show elements with different speed.
   $("#show").click(function(){
   $("#mark1").show(1000);
  $("#mark2").show(1000);
  $("#mark3").show(2000);
  $("#mark4").show(3000);
});
 // apply toggle action with different speed.
   $("#toggle").click(function(){
   $("#toggle1").toggle(1000);
  $("#toggle2").toggle(1000);
 
});

}); 

</script>
</head>
<body>
  
  <p id="mark1">This paragraph includes part-one.</p>
  
  <p id="mark2">This paragraph includes part-two.</p>
   <input id="mark3" type="text"/>
  <p id="mark4">This paragraph includes part-three.</p>
  
   <p id="toggle1">This paragraph includes part-four.</p>
    <p id="toggle2"  hidden="true" >This paragraph includes part-five.</p>
  
  <button id="hide">Hide</button>
  <button id="show">Show</button>
  <button id="toggle">Toggle</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 : Hide, show and toggle effects with speed control
 Control scroll speed using JQuery     -  
 Motor DC Speed Control by switching ON and OFF Assembly     -  
 Fade-In, Fade-out and Fade-toggle with time control     -  
 Toggle the Multi Monitor Setting in Windows XP     -  
 Using Filters Effects     -  
 Turn on-off lighting effects     -  
 java image effects     -  
 draw text effects in java     -  
 rank order filter effects on image     -  
 Speed Painting     -  



Topic Tags

JQuery Show, JQuery Toggle, JQuery Hide
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