<div class="obj">
Test Object
</div>

<script type="text/JavaScript">

$(function() {

$(".obj").slideUp(0); // initial state

$(".obj").slideDown(500);

setTimeout(function() {
$(".obj").slideUp(500);
}, 5000);

});

</script>

On Sat, Jul 4, 2009 at 2:26 PM, Snaak <huismeis...@gmail.com> wrote:

>
> Hi all,
> I try to make a div to slide down, pauze for 5 seconds and then slide
> up. This is meant for showing a message. Just like the Twitter
> interface. But I cannot get it working. Anyone an good idea?
> Thx in advance!
>
> Current code:
>  $(".testbutton").click(function () {
>      $('#test').slideDown( 'slow' );
>                timer = setTimeout('$(".testbutton").click()',500);
>                $('#test').slideUp( 'slow' );
>                return false;
>    });
>

Reply via email to