PDA

View Full Version : IE and code problems


boondocksaint
01-08-2005, 11:16 PM
Hi,
I need help and a couple of answers.
First of all, why is it that much of CSS doesn't work in IE?
If you go to my web site (http://pig-fart.us) in Firefox and IE, you will see differences, such as background image in the iframe on the front page.

My main concern is javascript popup code which works in Firefox, but does not in IE. Click "matey" button, there is a section BIOS. If you click M, in FF, a window should open, while in IE, it does not.
I have this code in the HEAD section of the page:

<script language="JavaScript">

function michael(){
window.open("images/bios/m.png", "Michael Popov", "width=420px,height=520px,menubar=no,resizable=no,s crollbars=no,directories=no,,toolbar=no");}

</script>



The M button contains this code:

<a href="javascript: michael()"><img src="images/bios/m_thumb.png" border="0px"title="Michael Popov"></a>



http://img.photobucket.com/albums/v397/boondocksaint2k/b00d6bcb.png

What I'm asking is, is there a way to make my website function in both browsers?

the pineapplehead
01-09-2005, 10:22 AM
Yes, by coding to web standards.

You're missing a doctype, and a character set, and your code has numerous errors.

Run the page through validator.w3.org and go from there.

Sticking in a correct doctype will force IE into standards mode. IE second guesses your code, whereas FF displays it properly.

boondocksaint
01-09-2005, 11:59 AM
Okay, I put in doctype and character set.
I ran my pages through ther validator and got validated.
but it still doesn't work, and IE says that my problem is this line of window.open("images/bios/m.png", "Michael Popov", "width=420px,height=520px,menubar=no,resizable=no,s crollbars=no,directories=no,toolbar=no");}

IE tells me that the error is Invalid Argument.
Also, is there a specific doctype I should use? HTML 4.01, XHTML 1.0?

boondocksaint
01-09-2005, 11:36 PM
I fixed it! Woo Friggin Hoo!