Jump to content

IE is driving me NUTS.


blacksaibot

Recommended Posts

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  ;)

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.