So yeah, creating "fake" frames is what I've resorted to and via PHP.
Here is my code:
Code: Select all
<div id="menubar">
<?php
if (!$_GET["menu"]) {
//in the case that no site was specified, include index.html
include "menu_mk1_story.html";
}
else {
include $_GET["menu"].".html";
}
?>
</div>
<div id="mainpage">
<?php
if (!$_GET["site"]) {
//in the case that no site was specified, include index.html
include "main.html";
}
else {
include $_GET["site"].".html";
}
?>
</div>My CSS files determines the height/width and other properties of the two DIV tags.
In firefox, it works perfectly. But, AS USUAL, internet explorer is the one screwing this up for me. IE is merging my two DIV tags into one single DIV.
Now, I am also having problems doing the whole "one hyperlink opens two pages"
I've attempted this method:
Code: Select all
<a class="headlinks" href="/index.php?menu=menu_mk1_arenas" onclick="location.href='/index.php?site=arcade/mk1/mk1_kombatants';return false;">Arenas</a>But if anyone can please help me out I would appreciate it. Is there a better alternative to frames and to what I'm attempting here? I'm new to PHP, so please try to talk laymen's terms with me thanks
I've done a little bit of research and found this method:
Code: Select all
<table cellpading="0" cellspacing="0" border="0" width="865">
<tr>
<td align="left">
<?php
include ('header.php');
?>
</td>
</tr>
<tr>
<td align="left">
<?php
include ('main.html');
?>
</td>
</tr>
<tr>
<td align="left">
<?php
include ('footer.php');
?>
</td>
</tr>
</table>