Return to Snippet

Revision: 48710
at July 8, 2011 00:26 by mariraj


Initial Code
$( 'html, body' ).animate( { scrollTop: 0 }, 0 );	
   	var winH = $(window).height();
   	var winW = $(window).width();
   	var centerDiv = $("#"+container_id);
   	centerDiv.css('top', (winH/2-centerDiv.height()/2) + 100);
   	centerDiv.css('left', winW/2-centerDiv.width()/2);

Initial URL

                                

Initial Description
Popup center and scroll top script

Initial Title
SCroll top and popup center

Initial Tags

                                

Initial Language
jQuery