Closed Thread Icon

Topic awaiting preservation: Layers and cross browser (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8037" title="Pages that link to Topic awaiting preservation: Layers and cross browser (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Layers and cross browser <span class="small">(Page 1 of 1)</span>\

 
butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 01-20-2002 03:37

I have a script (author unknown) that displays a box in a layer above the rest of the page. It works fine in IE and NN6.x, but crashes NN4.7 everytime. Since my understanding of JavaScript is virtually non-existent, (and completely MIA in cross browser issues ) I would be greatful to anyone that could tell me how to make this one work in NN4.7 also. It seems to have code in it that addresses NN4 but it still doesn't work in it.

Here's the <head> code:

<script language="JavaScript1.2">

var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

var dragswitch=0
var nsx
var nsy
var nstemp

function drag_dropns(name){
if (!ns4)
return
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 01-20-2002 04:00

Butcher, you're not going to like this but I cut & pasted this code into a test page and it works fine in NN4 for me. I don't know what to tell you. What kind of crash are you getting in NN4? Does it just not drag'n'drop or does the browser actually crash?

This must just be a typo in your post but I did have to change one thing in the code to get it work in IE.
function hidebox(){
<B>if (ie4

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 01-20-2002 11:20

Butcher, old Netscape can crash when rendering complex pages (i.e. a lot of tables, scripts, etc.), it doesn't have to mean that JavaScript isn't written correctly...

Bugimus, UBB automatically adds space between &#124;&#124;, since it stores all data in flat files separated with &#124; and when someone enters &#124; it automatically converts it to &amp;#124;&amp;nbsp;, in order not to break flat file...


butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 01-20-2002 17:52

I don't know if this will tell you guys anything, but I'm using NN4.7 on Win2k and it just crashes. The error I get is:

quote:
netscape.exe application error

The instruction at "0x00403896" referenced memory at "0x0008015f". The memory could not be "read".


<edit>

I'm sorry, I can't give you an address to check out because it's not my stuff, and I have to get permission. I'll see what they say.

</edit>

Thanks guys

-Butcher-


[This message has been edited by butcher (edited 01-20-2002).]

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 01-21-2002 00:28

Buthcer,

I have an old PC where I test out some of my new pages just to see what happens. Most all of my dhtml pages will crash Netscape on that machine. So it is entirely possible that your page will work fine on NN4 if you try it on other machines.

Thanks for the explanation about the "

« BackwardsOnwards »

Show Forum Drop Down Menu