blacksaibot Posted April 12, 2011 Share Posted April 12, 2011 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 Quote Link to comment Share on other sites More sharing options...
blacksaibot Posted April 12, 2011 Author Share Posted April 12, 2011 I've done a little bit of research and found this method: <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> My next question is how can I make links open in certain "frames" (or certain includes) - not sure of the correct terminology. Quote Link to comment Share on other sites More sharing options...
blacksaibot Posted April 12, 2011 Author Share Posted April 12, 2011 I'm basically making a index.php that will never change (because it contains drop down menus that EVERY single page in my website will use) The second part of the index.php will include another menu that changes depending on where you are in the website. So consider that a submenu. The third part of the index.php will contain all the content, which is what I call main. If I click a link in the main section, it will not only change the contents of main but also the contents of the submenu - all while not changing the drop-down menues within index.php Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted April 12, 2011 Share Posted April 12, 2011 did you read the sticky of this forum? Also your do you have some client side code instead of serverside (php is a serverside language). Maybe even a better an online example? What version of IE screw it up for you? if all, did you read the steaky? Quote Link to comment Share on other sites More sharing options...
blacksaibot Posted April 13, 2011 Author Share Posted April 13, 2011 did you read the sticky of this forum? Also your do you have some client side code instead of serverside (php is a serverside language). Maybe even a better an online example? What version of IE screw it up for you? if all, did you read the steaky? Not sure what a "steaky" is, but I got my answer from another forum. Thanks anyway. Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted April 13, 2011 Share Posted April 13, 2011 lol sorry it was diner time, I meant sticky of the css forum. anyway in order to help the fastest way would be to post clientside code, and or an online example. Css and html are visual things. Quote Link to comment Share on other sites More sharing options...
crmamx Posted April 13, 2011 Share Posted April 13, 2011 I just ignore IE. If they want to see it as written they can use a decent browser... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.