homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Dhtml with netscape.
Take a look for me.

 2:43 pm on Dec 18, 2001 (gmt 0)

Hey everyone. I am new here but I do not have Netscape and was wondering if anyone would check this [conxiondesigns.com] page to see if you are able to drag the peices of the face around the screen. Thanks alot.



 2:50 pm on Dec 18, 2001 (gmt 0)

Sorry jsbwm,

Doesn't work on NN 4.0


 3:26 pm on Dec 18, 2001 (gmt 0)

Anyone working with dhtml -particularly if it involves moving or writing to divs on the fly- had better start with NS4, then check it with NS6. If it gets past those two, it's going to work. Even if you hate it, you can't afford to ignore NS4, as it's going to be 6-15% of your market. Also, I've found (the hard way) that old cross-browser code doesn't work in NS6. Currently. the best sources for 3-way cross-code I've found are dhtmlnirvana.com/alchemy and dynamicdrive.com


 4:08 pm on Dec 18, 2001 (gmt 0)

Welcome to Webmaster World, Jim. Nice to see another DHTML junky around.

Netscape is nice enough to keep old versions of their browser available at: [home.netscape.com...]

You can even download just the Navigator browser as a stand-alone, without getting Messenger, Composer, etc.


 6:52 pm on Dec 19, 2001 (gmt 0)

Hi Jim,

Nice Work!

There's a typo on line 37 at the end of the statement:



 6:27 pm on Dec 21, 2001 (gmt 0)

Hey thanks alot for everything.. I am going to try and get that typo now. maybe after this post someone could just check it one more time to see if it works. Thanks again. Glad to be here.


 10:20 pm on Dec 21, 2001 (gmt 0)

Still not draggable in NN 4.7


 11:51 pm on Dec 22, 2001 (gmt 0)

Ok with much longer code and a lesson learned I have gotten it to work in NS6 with some problems still to work out. Does anyone know how to get an array of all elements in a page without using getElementsByTagName("div") function in NS6 since it is using the w3c model now?


 1:16 am on Dec 23, 2001 (gmt 0)

This page [dhtml-zone.com] claims that getElementsByTagName() WILL work in Netscape 6.

The site has this idea to offer, which I found interesting:

Incidentally, developers who long for the bad old days can use getElementsByTagName to create their own document.all collection of sorts (this trick only works in NS6 and Mozilla):

var all = document.getElementsByTagName("*");

That might be a quick fix for some of my legacy code.


 11:40 pm on Dec 24, 2001 (gmt 0)

Ok. I have fixed my code so that it works in IE and works in NS (all versions) however I have 2 problems.
1) In NS4 - If you click anywhere else on the page that is not a layer you get a JS error. You can still drag the layers properly but I am wondering how i could get rid of the other error.
2) In NS6 - I can drag layers but for some reason it is hard to get a grip on some of the layers. It almost seems like you can only click on the top-left quarter of the layer to be able to drag it.

I know these are nitty gritty details and its sorta long code but if anyone has any ideas I would reall appriciate it.
Thanks as always,
PS. Address is the same as before.
[conxiondesigns.com ]


 4:18 am on Dec 25, 2001 (gmt 0)

Worked fine for me ... no JS errors on mac NN4.0


 6:23 am on Dec 25, 2001 (gmt 0)

Don't know if you checked the error message on NN4. It's this:

line 197: window.element has no properties

This seems odd -- if I am reading your code correctly, line 197 occurs within an "else" section that begins "if(isNS6)". But just before that, you already had an "if(isNS4)" section, so I didn't expect the code to even hit line 197 when the browser is Netscape4.

Should that "if(isNS6)" be "else if(isNS6)"? Then line 197 would only kick in for non-Netscape browsers, which I think is what you are after.


 12:48 pm on Dec 25, 2001 (gmt 0)

Yeah tedster i didn't look at the js error because the computer that has NS is not on the internet and will not go to javascript as a location. I will look into what you pointed out. Thanks,


 6:36 pm on Dec 25, 2001 (gmt 0)

Yahoo! All finished. All 3 browsers working! Thanks tedster for the info on if..else ect. I just changed them all to ifIE, ifNS6, ifNS4, ect. The problem I was having with being able to grab the layer in NS6 was because some of the layers' widths and heights were set in the style= to be less than the image inside the layer. This caused only part of the image to be clickable. Thanks for ur help through this. Now its perfect for the most part.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved