First apologize for my English. I have a popup when I do click in triggerPop this one it appears, I'm trying to show this one to the right but the css doesn't work. What am I doing wrong? Thank you in advance.
var monscreen = $(window).width();
var mondoc = $(document).width();
if (mondoc > monscreen) {
var dif = mondoc - monscreen;
$("div#Navigation_Popup").css({
'right': dif + 'px'
});
}
$(function() {
$('#triggerPop').bind('click', function(e) {
$("#Navigation_Popup").slideFadeToggle(function() {});
return false;
});
$.fn.slideFadeToggle = function(easing, callback) {
return this.animate({
opacity: 'toggle',
height: 'toggle'
}, "fast", easing, callback);
}
});