window.parent.oDiv.innerHTML="Something"Now, I need to include some HTML in there for a div which contains some relative positioning. That would be an example:
window.parent.oDiv.innerHTML="<style>.DivSlideshow {position: relative;}</style><div class=DivSlideshow><div class=DivSlideshowChild>Test</div></div>"Basically, in the initialization of the div, I am passing some styles and some Html. The goal is to have a child element to benefit of absolute positioning as per the parent.
<style> .DivSlideshow { position: relative; } .DivSlideshowX { position: absolute; top: 10; right: 10; } </style> <div class="DivSlideshow"> <div><img src="00000001.jpg" style="width: 1000px; height: 750px;"></div> <div class="DivSlideshowX">X</div> </div>...it would work.