Return to Snippet

Revision: 58519
at July 20, 2012 00:44 by tnntwister


Initial Code
var genuineBottom = parseInt($("#alertwindow-'.$view->getParam("uniqid").'").css("bottom").slice(0,-2),10);
					if (genuineBottom == undefined || genuineBottom == NaN) 
					{
						genuineBottom = 0;
					}
							
					$(window).scroll(function() {
						offset = $($("#alertwindow-'.$view->getParam("uniqid").'")).offset();	
						var newTop = $(window).height() - $("#alertwindow-'.$view->getParam("uniqid").'").height() + $(window).scrollTop() - genuineBottom;		
						$("#alertwindow-'.$view->getParam("uniqid").'").css("top", newTop + "px");
					});

Initial URL


Initial Description
wild scope on genuineBottom...

Initial Title
simulate position:fixed with bottom (jquery)

Initial Tags
jquery

Initial Language
JavaScript