View Full Version : Why does my javascript always work in everything but Firefox?


Zarel
08-04-2005, 03:36 PM
So, I decide to make a PHP directory list script. This is fine, but I also want to use Javascript so that when I click the name of a file, it displays the file details on a sidebar.

This is what I have so far:

http://www.shadowedlogic.uni.cc/directorylist.php?view=icons

Ignore the fact that I'm using tables for layout, which is bad (I'll get around to fixing it later), and ignore the fact that you can't change view mode, arrange icons by, and change folder display in IE because IE doesn't like div:hover.

What I need to know is why the Javascript works in everything EXCEPT Firefox (as in, it works in Opera, Safari, Konqueror, even IE).

This always seems to happen: Whenever I make Javascript, it doesn't work in Firefox. And I know I didn't turn off Javascript in FF, because Javascript in other sites works. And I know I didn't selectively turn off Javascript in FF in my site, because other people's Javascript works in my site, it's just my own javascript that doesn't.

So tell me: What am I doing wrong here?