[Javascript] Netscape 4

Peter Brunone peter at brunone.com
Mon Nov 5 23:11:23 CST 2001


Andrew,

	Since I don't see anything called "main1" in your HTML, it's not hard to
see why your script isn't working :-)
	Seriously, though... I believe you have to go through the layers
collection, and of course you have to explicitly state the name of the
image.  There should be a Netscape DOM reference in the material on
http://www.mountaindragon.com/javascript/resources.htm ; let us know how you
finally resolve this one.

Cheers,

Peter

|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of Andrew Gibson
|Sent: Monday, November 05, 2001 10:39 PM
|To: javascript at LaTech.edu
|Subject: [Javascript] Netscape 4
|
|
|I have a problem with mouseovers in netscape 4
|
|I have an image inside of a <div> tag
|
|<div id=mydiv><a href=# onmouseover=testit()><img name=Test
|src=test.jpg></a></div>
|
|My mouse over script doesn't seem to work with the img inside a
|<div>  works
|outside and in IE.'
|
|DOesn't something like this work?
|
|document.main1.src=path
|
|Thanks
|Andrew Gibson
|




More information about the Javascript mailing list