to float a div (only becomes visible onclick). Works fine on a normal page. However, in one circumstance I also need it to work on a page which is enclosed in an iframe.
However, providing that the iframe height is sufficient that scrolling does not happen, the problem is that this floating script positions its div 100px below the top of the iframe, not 100px below the top of the main page, which is what I'd like. So, effectively, the div does not float, it is hidden at the top of the iframe.
Is there any way to make the script work based on position within the parent window, rather than the iframe itself, even though the script and floating div are within the iframe?