![]() 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 |
![]() 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 |
![]() |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() I'm working on it, give me a bit of time... |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() 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 |
![]() 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 |
![]() OK, max typed faster than me. =) |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() 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 |
![]() |
Maniac (V) Inmate From: A little lower... lower... ahhhhhh, thats the spot |
![]() |
Maniac (V) Inmate From: A little lower... lower... ahhhhhh, thats the spot |
![]() 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 |
![]() 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 |
![]() |