PDA

View Full Version : Floating iFrame bug?



Wildfire563
06-16-2005, 03:57 AM
Perhaps I'm dumb, but, I seem to have found a bug with the Floating iFrame script in IE 6.0.2900.2180.xpsp_sp2_gdr...

I inserted the script and it seemed to work fine. But if I resize the window so that the iFrame is no longer visible, if I try to scroll down to see the iframe, it constantly repositions itself undereath the window frame so that I can never see it. Refreshing the page repositions the frame appropriately. Here's the portion of the script I've edited.

//Specify iframe to display. Change src and other attributes except "position" and "left/top":
var iframetag='<iframe id="masterdiv" src="counter.htm" width="100px" height="85px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" style="position: absolute; left: -500px; top: -500px;"></iframe>'

//specify x coordinates of iframe ("right" for right corner, or a pixel number (ie: "20px")):
var masterdivleft="25px"

//specify y coordinates of iframe ("bottom" for bottom of page, or a pixel number (ie: "20px")):
var masterdivtop="bottom"