/    Sign up×
Community /Pin to ProfileBookmark

Fx.slide Mootools status variable

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!

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Ermen spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...