Skip to main content

Using animate function in jquery to reduce it to zero and back


Declare this in your header or in your body for initilialising your div

<style>
div.solution{
width:400px;
}
</style>


declare the div within the body

<div class="solution"> abracadabra.....poof poof</div>


use this line to slowly reduce the width of the div to 0px
$("div.solution").animate({width:"0px"},500);

use this line to slowly increase the width of the div to 400px
$("div.solution").animate({width:"400px"},800);

The last parameter denotes the time to run the function for....

Comments

Popular posts from this blog

Tally server gives license information while doing integration

When tally server gives this response <!DOCTYPE html><html><body><RESPONSE>License server is Running<br><br><b>Product : </b>Tally.ERP 9<br><b>Serial number : </b>xxxxxxxxxx<br><b>License state : </b> Permanent License<br><br><b>Product : </b>Tally.Developer 9<br><b>Serial number : </b>(Not Applicable)<br><b>License state : </b> No License<br><br><b>Product : </b>Shoper 9<br><b>Serial number : </b>(Not Applicable)<br><b>License state : </b> No License<br><br><b>Product : </b>Tally.Server 9<br><b>Serial number : </b>(Not Applicable)<br><b>License state : </b> No License<br></RESPONSE></body></html> problem maybe with the port number given in the tally advanced configuration settings. Try integrat...

Taking Backup of contacts in iPhone

Here is how to back up your  iPhone  contacts on a PC.  1) Open i-tunes on your computer that you sync it to 2) Plug in your iPhone to the PC 3) open "Address book" window's address book program. Kinda lame, but it works. Its under start-programs-accessories - Back to  iTunes , click on the phone icon on the left - Click on the Info, and under "Contacts" (the first one) check "sync contacts from" and then pick "Windows address book" from the drop down menu - Click all contacts - Then at the bottom right of  iTunes , click "Sync" It will ask you if you want to merge or replace. Make sure you select "MERGE" or it will delete your contacts on the phone.  Thats it, check your Windows Address Book and everything should be there. All the numbers and emails that you have put so much time into adding to your phone. Pretty nice. So, from now on, if you add contacts to the phone it will back up to the Computer and the Co...