The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

document.write('<scr'+'ipt type="text/javascript" src="'+scriptStr+'"></script>');
/* Do not put any code here that relys on
either of the three scripts mentioned above. */
//-->
</script>

<!-- One of the above scripts will be loaded here -->

<script type="text/javascript"><!--
/* Now you can use code that depends on
any of the three scripts mentioned previously. */

//defined in one of the scripts (unkown.js, ie_compatible.js or ns_compatible.js)
BrowserIndependent.attachListener(myElement, myFunct, true);

//--></script>

<!-- ///////////////////////// Here is where I had to do it a second time b/c I am an idiot, Java programmers help! //////////////////////////////// -->
<!-- Load nothing if they are using explorer, and load firefix.js if they are using firefox... -->

The following does what you wanted the first one to do. It loads one thing for IE and something else for all browsers except IE. It is just about impossible to tell the difference between browsers that are not IE and so Mozilla, Netscape, Opera, Safari, Konqueror etc will run the same code as for your Firefox version. Note that it doesn't require Javascript to distinguish different scripts to load in this instance as it can be done entirely in HTML using IE proprietary conditional tags. There are also IE conditional tags available in JScript for those instances where you need to tell within the Javascript code whether it really is Javascript (run by all browsers except IE) or JScript (the IE equivalent).

<!-- Load explorerfix.js if they are using explorer, and load maxiframe.js if they are using anything other than explorer... -->
<!--[if IE]><script type="text" src="explorerfix.js"></script><![endif]-->
<!--[if !IE]-->]><script type="text" src="maxiframe.js"></script><!--[endif]-->

OMG, would you look at that! It is now working with your provided "not IE" script. I had set the type="text"... Just realized my mistake when I looked at the post I made 2 posts ago. Thanks for the awesome "IE/win hack"! But I would still like to use my original script, because I think it is more secure. I read that a lot of browsers can read through the if IE comment, and FF can be set to do this...

No rush, I have 2 functioning scripts now. I would just like the original one to take up less room, lol.