Click here to Skip to main content
15,890,409 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
The below code giving me the Image1- toggle at form load()
But I wish to do it as continuos manner...
For that I need to learn to write functions.....
Thanks for the guidences..

XML
<script src="Scripts/jquery-1.10.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#Image1").animate({ height: 'toggle' });
            $("#Image1").animate({ height: 'toggle' });
        });
    </script>
Posted
Updated 2-Jul-13 6:00am
v2

1 solution

you can use setInterval for that below is example with 2 second interval

$(document).ready(function () {
       setInterval(function() {
        $("#image1").animate({ height: 'toggle' });
        $("#image1").animate({ height: 'toggle' });
        }, 2000);
    });


Jquery setInterval function
[^]
 
Share this answer
 
Comments
Rajeev Jayaram 2-Jul-13 12:02pm    
Good answer!
Mahesh Bailwal 2-Jul-13 12:44pm    
thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900