[Javascript] Netscape 4.x DIV problems.

Nick Messick nick.messick at centric.com
Fri Jul 6 12:53:31 CDT 2001


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';
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010706/0d1293bf/attachment.htm>


More information about the Javascript mailing list