Preserved Topic: Modifying a browser detect and handling script for Gecko (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: A little lower... lower... ahhhhhh, thats the spot |
posted 07-10-2001 05:37
OK you code guru's I have a problem. I am teaching a DHTML class here in a couple of weeks and the book is awesome about explaining the inner workings of the JS coding. However, they have ignored NN6 as far as cross-browser compatibilities go. Here is the script so far: code: /* ***************************************
code: function moveItToNav(x, y)
|
Maniac (V) Inmate From: A little lower... lower... ahhhhhh, thats the spot |
posted 07-10-2001 17:32 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-10-2001 17:39
I'm working on it, give me a bit of time... |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-10-2001 17:42
Patience Krets. I also have other things to do in life, heh... code: <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-10-2001 17:43
OK, no, cancel that, I can't help you 'till I get home, too many little things to look up... if no one else posts anything then i will when i have a chance to check some things. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-10-2001 18:00
OK, max typed faster than me. =) |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-10-2001 18:40 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-10-2001 18:58
Another annoying thing that NN6 does, although it is correct to do this, is when you ask it for something's left position (layer.css.left), it won't just give you "63", it'll give you "63px". So you need to use parseInt() to read the number. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-10-2001 19:22 |
Maniac (V) Inmate From: A little lower... lower... ahhhhhh, thats the spot |
posted 07-10-2001 19:35 |
Maniac (V) Inmate From: A little lower... lower... ahhhhhh, thats the spot |
posted 07-10-2001 22:26
I'm trying to figure this whole Gecko syntax thing out so lets say now that I want to add compatibility to a write() method I've created using this: code: function dynoWriteNav(html)
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-10-2001 22:41
After many complaints from web developers, Mozilla people implemented the innerHTML property (originally, you had to use text ranges, but that's another story)... code: function dynoWriteNav(html) {
|
Maniac (V) Inmate From: A little lower... lower... ahhhhhh, thats the spot |
posted 07-11-2001 00:00 |