Put working demo on jsfiddle and you'll get excellent help.

That said ... you don't need an event, just call a method whenever you want:

myVerticalSlide.toggle();

To delay it after load:

window.addEvent('load', function(){
    myVerticalSlide.toggle.delay(3000, myVerticalSlide);
});
    


On Dec 23, 2010, at 9:51 AM, MJ wrote:

> Hello everybody,
> 
> I successfully implemented the FX.slide demo from mootools.net. Now I
> wonder, how to toggle the slide automatically a few seconds after
> loading the page. This is my JS code so far.
> 
> window.addEvent('domready', function() {
>       var myVerticalSlide = new Fx.Slide('vertical_slide', { duration:
> 'long', transition: Fx.Transitions.Bounce.easeOut }).hide();
> 
>       $('v_toggle').addEvent('click', function(e){
>               e.stop();
>               myVerticalSlide.toggle();
>       });
>       $('v_slideout').addEvent('click', function(e){
>               e.stop();
>               myVerticalSlide.slideOut();
>       });
> });
> 
> I have no idea, how to start the event without clicking on the button.
> I tried a lot of fireevents... but no chance.
> 
> 
> Thanx for any help .... and MERRY CHRISTMAS

Reply via email to