This is a discussion on "Javascript code ignored by Netscape/Firefox" within the JavaScript Forum section. This forum, and the thread "Javascript code ignored by Netscape/Firefox are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Javascript code ignored by Netscape/Firefox
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Javascript code ignored by Netscape/Firefox
Hi everyone, new to the forum and I've had a look around but couldn't find an answer to the question I'm about to ask. Apologies if it has been dealt with before.
I'm trying to get the below code working in Netscape/Firefox. It's just a simple routine to load a different image depending on the user's resolution. It works perfectly in Opera and Explorer but Firefox and Netscape completely ignore it. No error messages or anything, it just doesn't run. Could somebody far more knowledgable in Javascript than I am please have a quick glance to see if they can spot what might need to be added in order to make it run in those browsers? Thanks in advance to anyone who has a shot.
|
|
|
|
|||
|
Re: Javascript code ignored by Netscape/Firefox
Put ' either side of all your attribute values.
|
|
|||
|
Re: Javascript code ignored by Netscape/Firefox
Hi Geoff, thanks a million for that - it worked like a charm. Can't believe it was something that simple, I feel like an idiot! Thanks again.
|
![]() |
| Tags |
| firefox, javascript, netscape |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| firefox, netscape, & IE9 browser trouble! | Welsh8 | Web Page Design | 14 | May 11th, 2008 08:39 |
| CSS & Firefox/Netscape | beerme | Web Page Design | 1 | Feb 9th, 2008 03:46 |
| Content appears fine in Firefox and Netscape but not IE | Lyss | Web Page Design | 3 | Oct 11th, 2006 00:30 |
| DIV alignment in Firefox and Netscape | johnmr | Web Page Design | 1 | Sep 11th, 2006 17:15 |
| Flash Slideshow Problem in Firefox & Netscape | tachacha | Flash & Multimedia Forum | 2 | Sep 6th, 2006 02:13 |