The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Need Help: js/ css active login-window setTimeout
Hi everybody,
I need help with a small javascript. I wanna activate the login-window at pageload and set a timeout to deactivate it again after a few seconds. I try somthing like this but it didn't work: HTML Code:
<vb:if condition="$page['channelid'] == 1"> <vb:if condition="!$user OR $user['userid'] < 1"> <script type="text/javascript"> $(document).ready(function() { $("#main-navbar .username-container").addClass("b_menu__dropdown--active");, function(){ setTimeout("$('#main-navbar .username-container').removeClass("b_menu__dropdown--active");", 5000); }); }); </script> </vb:if> </vb:if> The template is loading but it isn't doing what it should do... Would be nice to get some help. Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|