Script: Iframe SSI script II
http://www.dynamicdrive.com/dynamici...iframessi2.htm
Altered script works in IE but not in NS6.
Ok Just to be weird I want to put an iFrame inside some standard frames. I have created some demo pages showing what I want to do and it really explains itself so go have a play:
http://riftgate.thecastle.co.nz/Site02/test3
I have extended the script so that it resizes the iframe height any time the iframe is resized by adding the lines:
currentfr.detachEvent("onresize", readjustIframe) // Bug fix line
currentfr.attachEvent("onresize", readjustIframe)
What this boils down to is I now have a dynamic iframe that adjusts itself when you resize the top level frames. Try dragging the frame bars on the demo page.
The problem is the code I have added only works in IE. When using NS6 it doesn't work. I'm not surprised as the code I added is IE specific.
I have tried adding some NS6 code but I am unsure of the correct addEventListener event code to use. I have tried 'resize', 'onresize' and other NS events that should work, such as 'click' and 'mousedown' but they do not work.
Basically I'm stuck and don't know what to do. Maybe I am trying to change the wrong part of the code, I don't know. Please help, I have searched these fourms post for post for answers, have spent 4 hours googling and still am no closer to an answer.
-----
coding is like been in love, soul destroying maddness 95% of the time and pretty damm sweet the rest.



Reply With Quote

Bookmarks