[Javascript] Netscape 4.x DIV problems.

Nick Messick nick.messick at centric.com
Fri Jul 6 13:49:54 CDT 2001


Now I'm getting an error saying Rollover1 is not defined.  It seems like
Netscape thinks my Div doesn't exist.  i used to have all my Div's be
Layer's but then Netscape thought the images inside the Layers didn't exist.

-----Original Message-----
From: Peter Brunone [mailto:peter at brunone.com]
Sent: Friday, July 06, 2001 11:46 AM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Netscape 4.x DIV problems.



    Right... try saying Rollover1 *without* the document reference.

----- Original Message -----
From: "Nick Messick" <nick.messick at centric.com>
To: <javascript at LaTech.edu>
Sent: Friday, July 06, 2001 1:20 PM
Subject: RE: [Javascript] Netscape 4.x DIV problems.


| I tried this:
|
| function setLayers() {
|
|
| document.Rollover1.x = 0;
| document.Rollover1.y = 69;
| document.Rollover1.zIndex = 100;
| document.Rollover1.visibility = 'show';
| document.Dropdown1.x = 19;
| document.Dropdown1.y = 85;
| document.Dropdown1.zIndex = 95;
| document.Dropdown1.visibility = 'hidden';
|
| }
|
|
| I still getting an error saying document.Rollover has no properties.  The
| page is at 208.186.122.172 if you would look at it.
|
| -----Original Message-----
| From: Peter Brunone [mailto:peter at brunone.com]
| Sent: Friday, July 06, 2001 11:21 AM
| To: javascript at LaTech.edu
| Subject: Re: [Javascript] Netscape 4.x DIV problems.
|
|
| Nick,
|
|     You can just refer to it as Rollover1.
|
| Cheers,
|
| Peter
|
| ----- Original Message -----
| From: "Nick Messick" <nick.messick at centric.com>
| To: <javascript at LaTech.edu>
| Sent: Friday, July 06, 2001 12:53 PM
| Subject: [Javascript] Netscape 4.x DIV problems.
|
|
| | Ok I have a div.  Here's how I set it up: <div name="Rollover1"
| | id="Rollover1">
| |
| | how do I refer to this div in netscape?  I've tried document.Rollover1
but
| | netscape tells me:  document.Rollover1 has no properties.
| |
| | I was using layers before but I heard netscape would use divs it just
| turned
| | them into layers.  Here's the code I use for the layers:
| |
| | function setLayers() {
| |
| | document.Rollover1.x = 0;
| | document.layers['Rollover1'].y = 69;
| | document.layers['Rollover1'].zIndex = 100;
| | document.layers['Rollover1'].visibility = 'show';
| | document.Dropdown1.x = 19;
| | document.layers['Dropdown1'].y = 85;
| | document.layers['Dropdown1'].zIndex = 95;
| | document.layers['Dropdown1'].visibility = 'hidden';
| | }


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010706/957acbf5/attachment.htm>


More information about the Javascript mailing list