Welcome to WebmasterWorld Guest from 50.19.156.133

Forum Moderators: open

Message Too Old, No Replies

Dhtml with netscape.

Take a look for me.

     

jsbwm

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

10+ Year Member



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.
-jim

Liane

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

WebmasterWorld Senior Member 10+ Year Member



Sorry jsbwm,

Doesn't work on NN 4.0

rcjordan

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

WebmasterWorld Senior Member rcjordan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

tedster

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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

MikeFoster

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

10+ Year Member



Hi Jim,

Nice Work!

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

checkElement.clip.heigh

jsbwm

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

10+ Year Member



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.
-jim

tedster

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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Still not draggable in NN 4.7

jsbwm

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

10+ Year Member



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?

tedster

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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

jsbwm

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

10+ Year Member



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,
Jim
PS. Address is the same as before.
[conxiondesigns.com ]

Liane

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

WebmasterWorld Senior Member 10+ Year Member



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

tedster

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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

jsbwm

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

10+ Year Member



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,
Jim

jsbwm

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

10+ Year Member



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.
-jim
 

Featured Threads

Hot Threads This Week

Hot Threads This Month