Hello,
I’m using the fx.slide from mootools and I want to stick a timer to it so it slides out after 10 seconds. To do this I want to use $(‘vertical_status’) which is used to save the status of the slide. Only this variable can only be accessed bij using an id with vertical_status as name in the HTML. And I want to use it in an if statement.
How can I form the variable so I can use it in my if statement?
var status = $(‘vertical_status’); didn’t work
This is how I want to use it:
if($(‘vertical_status’) == open){
InitiateTimer();
}
This is the code of the vertical status in the JS:
myVerticalSlide.addEvent(‘complete’, function() {
$(‘vertical_status’).set(‘html’, status[myVerticalSlide.open]);
var check = ‘$(vertical_satus)’;
});
This is how you can call in the HTML:
<span id=”vertical_status”></span>
I hope it’s all clear and someone can help me.
Thanks!