function getParameterByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } $(window).load(function(){ if(getParameterByName("editframe")){ $('#top-image').remove(); $('#footer-wrap').remove(); $('.main-shadow').css('height','0px'); $('.below-fold-wrapper').css('position','absolute'); $('.below-fold-wrapper').css('top','0px'); $('#main-wrap').css('padding-top','0px'); $('body').css('background','none'); $('body').css('width','790px'); $('.container').css('width','790px'); $('#banner-wrap').css('width','790px'); $('#nav-wrap').css('width','790px'); $('#top-image').css('width','790px'); $('#main-wrap .container').css('width','700px'); $('#footer-wrap .container').css('width','700px'); } });