Hi, i want invoke the popup after a slide of a jquery button
I've tried this solution but don't work...any hint or solution ?
sound like this:
jQuery(document).ready(function() {
$loginregister = false;
jQuery(".btn_select").stop().animate({marginLeft: '0px' });
jQuery(".btn_select").click(function(){
jQuery(this).blur();
if ($loginregister == false){
jQuery(this).stop().animate({marginLeft: '70px' });
jQuery(window.location).attr({
href: '/wp-login.php',
'class': 'simplemodal-login'
});
$loginregister = true;
}else{
jQuery(this).stop().animate({marginLeft: '0px' });
$loginregister = false;
}
return false;
});
});