Is there a way to load a parent page into an object tag if the code doesn't seem to be appearing in the <object>? Here's what I've tried:
var page = parent.document.documentElement.innerHTML;
alert(page);
document.getElementById('close_skin').style.visibility = "visible";
document.getElementById('show_skin').style.visibility = "visible";
document.getElementById('show_skin').setAttribute("data", page);
If I can make the code appear, how do I switch to using different styles like ".xxx_float" classes instead of ".xxx_fixed" classes from the parent?
I attempted adding some script at the top of the var page object that may help once the code is visible:
+'document.getElementById(\'icon_outer\').setAttribute(\'class\', \'icon_outer_float\')'
To provide context, changing from "fixed" to "float" classes allows for different scrolling behaviors within the <object>. Here are examples of the CSS changes needed:
.menu_back_float {position: relative; top: 0px; background-color: #f5eca4; min-height: 520px; height: auto;}
.menu_back_fixed {position: relative; top: 35px; background-color: #f5eca4; min-height: 550px; height: auto;}