Hi, I am making a site and it works fine in IE but the frame doesn't open in Firefox. Here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Air Caraibes Virtual</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-image: url(images/bg.png);
margin-bottom: 1px;
background-repeat: repeat-x;
background-size: 300;
background-color: #D0DD28;
}
.style1 {
font-family: "Times New Roman", Times, serif;
font-size: 12px;
color: #FFFFFF;
}
-->
</style>
<script language="JavaScript">
<!--
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('mainframe').contentWindow.
document.body.scrollHeight;
//change the height of the iframe
document.getElementById('mainframe').height=
the_height;
}
//-->
</script>
</head>
<body>
<ul id="dhtmlmenu4" style="list-style: none; margin: 0; padding: 0">
<li style="display: inline">
<!-- source: "C:/Documents and Settings/Niko Nikic/My Documents/air caraibes/menu.dms" -->
<img id="TrackPath_m4" src="menu-files/empty.gif" width="1" height="1" style="display:none" alt="" />
<script type="text/javascript" src="menu-files/dhtmlmenu_m4_scr.js"></script>
</li>
</ul>
<div align="center">
<table width="985" border="0" cellpadding="0" cellspacing="0" bgcolor="#000066">
<tr bgcolor="#000066">
<td width="134" height="89"><div align="right"><a href="http://www.realworldatc.com"><img src="images/rwatc.png" width="133" height=29 border="0" /></a></div></td>
<td width="704" height="89" bgcolor="#000066"><center>
<img src="images/aircaraibesvirtual_logo.png" width=579 height=80 align="absbottom" />
</center></td>
<td width="134"><table width="157" height="89" border="0" cellpadding="0" cellspacing="0" bordercolor="#000066" bgcolor="#000066">
<tr>
<td bgcolor="#000066"><div align="center"><span class="style1">NEWS</span></div></td>
</tr>
<tr bordercolor="#000066" bgcolor="#000066">
<td height="48"><marquee id="newsmarquee" height="62" scrollamount="2" direction=up>
<div align="center" class="style1" onMouseOver="newsmarquee.stop();" onMouseOut="newsmarquee.start();">This is a test!</div>
</marquee></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#000066">
<td width="134"> </td>
<td width="704"><center>
<script type="text/javascript" src="./menu_scr.js">
</script>
<table id="m1mainSXMenu2" cellspacing="1" cellpadding="5" style=";width:">
<tr style="text-align:center">
<td onmouseover="chgBg(m1,'m1tlm0',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm0',0,1)" id="m1tlm0" onmousedown="f58('m1tlm0a')" style="background-color:#70B842;" class="m1mit" ><a id="m1tlm0a" class="m1CL0" href="/home.php" target="mainframe">Home</a></td>
<td onmouseover="chgBg(m1,'m1tlm1',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm1',0,1)" id="m1tlm1" style="background-color:#70B842;" class="m1mit" >Test</td>
<td onmouseover="chgBg(m1,'m1tlm2',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm2',0,1)" id="m1tlm2" style="background-color:#70B842;" class="m1mit" >Test2</td>
<td onmouseover="chgBg(m1,'m1tlm3',3);exM(m1,'m1mn1','m1tlm3',event)" onmouseout="chgBg(m1,'m1tlm3',0);coM(m1,'m1mn1')" id="m1tlm3" style="background-color:#70B842;" class="m1mit" ><a id="m1tlm3a" class="m1CL0" href="javascript:void(0);" >test3<img width="8" height="8" src="./menu_m1iad.gif" style="vertical-align:middle;border-style:none" alt="" /></a></td>
<td onmouseover="chgBg(m1,'m1tlm4',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm4',0,1)" id="m1tlm4" style="background-color:#70B842;" class="m1mit" >test4</td>
<td onmouseover="chgBg(m1,'m1tlm5',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm5',0,1)" id="m1tlm5" style="background-color:#70B842;" class="m1mit" >test5</td>
<td onmouseover="chgBg(m1,'m1tlm6',3);exM(m1,'none','',event)" onmouseout="chgBg(m1,'m1tlm6',0,1)" id="m1tlm6" style="background-color:#70B842;" class="m1mit" >test6</td>
</tr>
</table>
</center></td>
<td width="134"> </td>
</tr>
</table>
<table width="985" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor=FFFFFF height=100%>
<td width="985">
<?php
$page = $_GET["p"];
$confirm = $_GET["confirm"];
if($page == "") {
$page = "home.php";
}
?>
<center>
<iframe onLoad="calcHeight();" scrolling="no" frameborder="0" name="mainframe" src="<?php echo $page; ?>" width=100% height="1">An iframe capable browser is
required to view this web site.
</iframe></center></td>
</tr>
</table>
</div>
</body>
</html>
The actual page is http://www.aircaraibesva.com/index1.php
Notice how the frame doesn't open in FireFox and it does in IE... But even in firefox home.php opens (which is what is in the frame) so it has to have something to do with the frame but I can't figure it out.
Thanks!
Darko