Jump to content

blacksaibot

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by blacksaibot

  1. Not sure what a "steaky" is, but I got my answer from another forum. Thanks anyway.
  2. 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
  3. 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.
  4. 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
  5. Code for index.php: <html> <head> <title>Outer World Investigation Agency</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <center> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td> <ul id="menu"> <li><a href="index.html" class="home"></a></li> <li><a href="mkvsdc.html" class="mkvsdc"></a></li> <li><a href="mk2011.html" class="mk2011"></a></li> <li><a href="mkr.html" class="mkr"></a></li> </ul> </td> </tr> </table> <div id="div-name"> <?php include("mainpage.html"); ?> </div> </center> </body> </html> How can I make the links within the included HTML file (mainpage.html) open its contents within itself as if it were a separate frame from my index.php file? Whenever I click a link that's in mainpage.html it opens the link and my PHP file is gone. My PHP file includes a menu that I don't want to have to re-write over and over again in each HTML page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.