Web-based Virtual Tour Iframe Example

Example of an embedded web-based virtual tour

Web-based Virtual Tour Iframe Example

This page has the following javascript in its <head> section to handle iframe resizing events:

<script language="JavaScript">
function autoResize(id){
var newheight;
var newwidth;
if(document.getElementById){
newheight = document.getElementById(id).contentWindow.document.body.scrollHeight;
newwidth = document.getElementById(id).contentWindow.document.body.scrollWidth;
}
document.getElementById(id).height = (newheight) + "px";
document.getElementById(id).width = (newwidth) + "px";
}
</script>