I've been trying to code my way around frames. I loved frames when they were the thing to use.
So yeah, creating "fake" frames is what I've resorted to and via PHP.
Here is my code:
<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>
The INDEX.HTML contains that code.
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:
<a class="headlinks" href="/index.php?menu=menu_mk1_arenas" onclick="location.href='/index.php?site=arcade/mk1/mk1_kombatants';return false;">Arenas</a>
It works fine in FireFox, and I think I'll have to stick with it for now.
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