ncw
asked on
iframe with Netscape
Having problems with using the iframe tag with Netscape 4.7. I've tried using ilayer> which works with a simple layout, but with the layout below, which includes nested tables, I only see the frame/layer source page in Netscape. Tried the div> tag with absolute position around the ilayer> tag, but it was then nested withing another div> take .. maybe that's why that didn't work either.
Any clues?
btw: some leading <'s maybe missing, seemed to happen when I pasted it, tried to replace them.
<html>
<head>
<body bgColor=#ffffff>
<ilayer>
<div id="logo" STYLE="position:absolute;l eft:0;top: 0">
<table width=700px height=450px border="0" name="toptable">
<tr>
<td valign="Top">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td width="190px" valign="top">
<table cellSpacing="0" cellPadding="0" border="0" name="contents">
<tr><td><a href="home.htm" target="display" onMouseOver="imgOn('menu1' )" onMouseOut="imgOff('menu1' )"><img src="../images/menu_h2.jpg " border="0" name="menu1" alt="Home"></a></td></tr>
</table>
</td>
<td width="500px" align="right" valign="top">
<table cellSpacing="0" cellPadding="0" width="450px" border="0">
<tr>
<td>
<iframe name="display" marginWidth="0" marginHeight="0" src="home.htm" frameBorder="0" width="450" scrolling="yes" height="296" bgcolor="white">
<ilayer name="display" marginWidth="0" marginHeight="0" src="home.htm" width="450" scrolling="yes" height="296" bgcolor="white">
</ilayer>
</iframe>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
font color="#ffffff">UK, England, Hampshire.</font>
</ilayer>
</body>
</head>
</html>
Any clues?
btw: some leading <'s maybe missing, seemed to happen when I pasted it, tried to replace them.
<html>
<head>
<body bgColor=#ffffff>
<ilayer>
<div id="logo" STYLE="position:absolute;l
<table width=700px height=450px border="0" name="toptable">
<tr>
<td valign="Top">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td width="190px" valign="top">
<table cellSpacing="0" cellPadding="0" border="0" name="contents">
<tr><td><a href="home.htm" target="display" onMouseOver="imgOn('menu1'
</table>
</td>
<td width="500px" align="right" valign="top">
<table cellSpacing="0" cellPadding="0" width="450px" border="0">
<tr>
<td>
<iframe name="display" marginWidth="0" marginHeight="0" src="home.htm" frameBorder="0" width="450" scrolling="yes" height="296" bgcolor="white">
<ilayer name="display" marginWidth="0" marginHeight="0" src="home.htm" width="450" scrolling="yes" height="296" bgcolor="white">
</ilayer>
</iframe>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
font color="#ffffff">UK, England, Hampshire.</font>
</ilayer>
</body>
</head>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Netscrap 6 supports Iframe, so the the IE code should work fine for it. Netscrap 6 is closer to IE than it is to Netscrap 4. Even Netscrap realized that the old document.layers object was beyond hope.
Cd&
Cd&
ASKER
Cd&: I've some javascript to detect Netscrap 4 or above (although not to hand at the moment) but I will need to extend that to detect Netscrap 6. Would you have a neat javascript function to do that which you could let me have??
I'm thinking that if I detect n4 or less I will display some unpolite message or redirect to a frameless page, but allow to proceed if n6+.
Nick
I'm thinking that if I detect n4 or less I will display some unpolite message or redirect to a frameless page, but allow to proceed if n6+.
Nick
ASKER
This seems to provide the answer to my last comment:
https://www.experts-exchange.com/questions/20523934/Controlling-browser-version.html
https://www.experts-exchange.com/questions/20523934/Controlling-browser-version.html
ASKER
COBOLdinosaur: Would you know if Opera, Morzilla, and Netcaptor support iframes? I think Morzilla and Netcaptor use the same engine as Netscape, so I guess not. Perhaps exclusive to IE.
All of the mozilla based browsers support iframe.
Also most of the modern browsers use the DOM1 so you can simplfy browser detection with:
If (document.getElementById)
That will return true for all DOM1 compatible browsers and it means that they support things like innerHTML and iframes.
If you keep your code within the standards it means less chance of a new browser vrsion coming along where you have to fix a bunch of stuff to make it work.
Cd&
Also most of the modern browsers use the DOM1 so you can simplfy browser detection with:
If (document.getElementById)
That will return true for all DOM1 compatible browsers and it means that they support things like innerHTML and iframes.
If you keep your code within the standards it means less chance of a new browser vrsion coming along where you have to fix a bunch of stuff to make it work.
Cd&
ASKER
Thanks for your help
Glad I could help. Thanks for the A. :^)
Cd&
Cd&
ASKER