K O S T E N L O S E
I M M O B I L I E N
B E W E R T U N G !

WERTE FÜR IHRE ZUKUNFT

function findPos(obj) { var curtop = 0; if (obj.offsetParent) { do { curtop += obj.offsetTop; } while (obj == obj.offsetParent); return [curtop]; } } // Use this Script to provide a dynamic Iframe Height to the CASAFRAME window.addEventListener('message', function(e) { var iframe = document.getElementById("casaframe"); var eventName = e.data[0]; var data = e.data[1]; switch(eventName) { case 'setHeight': iframe.style.height = (data + 20) + "px"; break; case 'singleLoaded': window.scroll(0,findPos(iframe)); break; } }, false);