Am using following code to refresh a div, now whenever it refreshes the page, it spoils the layout, am not understanding why so..
var auto_refresh = setInterval(
function() {
$('#loaddiv').fadeOut('slow').load('loadmore.php').fadeIn("slow");
}, 2000);
After reloading

You are inserting whole page to an element, you can pass a selector to
loadmethod.