php - How is the iFrame with Header Preview Achieved? -
i know general question, can't true answer on stackoverflow or searching google. how make page fixed header logo , links , iframe of given url. closest i've come across iframe fixed header. want achieve this example on codecanyon. first link gives decent answer, page has 2 scroll bars. in advance!
edit: want make iframe stretch height of page :)
the examples linked using jquery dynamically adjust height.
//function adjust height of iframe var calcheight = function () { var headerdimensions = $('#header-bar').outerheight(true); $('#preview-frame').height($(window).height() - headerdimensions); } $(document).ready(function () { calcheight(); }); $(window).resize(function () { calcheight(); }).load(function () { calcheight(); });
this code used dynamically adjust height.
you can see here in jsfiddle http://jsfiddle.net/qqkc4/11/
Comments
Post a Comment