[Javascript] nested layer in netscape 4

Muchacho, Laurent (TWIi London) LMuchacho at twii.net
Tue Feb 12 11:27:17 CST 2002


Hi All

I'm trying to change the source of an image in a serie of 4 layer I know I
need to references layer something like that  
document.layers['layer1'].document.layers['layer2'].document.layers['layer3'
].document.layers['layer4']
but that work if I want to change visibility or color but I don't arrive to
change the source of the image 
I try
:document.layers['layer1'].document.layers['layer2'].document.layers['layer3
'].document.layers['layer4'].document.images['myImage'].src
but no result
html look something like that:
<div id="layer1">
	<div id="layer2">
		<div id="layer3">
			<div id="layer4">
				<img name="myImage" src="bob.gif" width="15"
height="15">
			</div>
		</div>
	</div>
</div>

I did arrive to do that with one layer but here I'm stuck 
If anyone got an idea 

Thanks Laurent


-----Original Message-----
From: Dave [mailto:schemer at cyou.com]
Sent: 12 February 2002 16:16
To: javascript at LaTech.edu
Subject: Re: [Javascript] order form question


Hi Esther,
    Now that looks more like what I am looking for. The "view-source:" works
too. The only next
question I will have so I may as well ask it now is, how would I take the
total as a variable or
a number, and transfer it to another html page for further display? My form
uses formail to send
me a copy via email and after the customer clicks to send the order, they
are presented with the
payment options as I take electronic checks, credit cards, PayPal, and
personal checks and money
orders.When they would click to send the order, I would like the payment
options screen to come
up (as usual), but have their total visible in case they didn't write it
down.
Thank you,
Dave

Esther_Strom at hmco.com wrote:

> Dave,
>
> If you just clicked on the link, it probably wouldn't work, as mail
> programs don't translate the view-source into the link. But I use this
> format in NS 4.51 and it works with no problem. Copy the entire link (
> view-source:http://www.emstrom.com/~emstrom/tests/order2.js) - including
> the words "view-source:" into the URL bar.
>
> As far as how you want to implement, maybe this is closer to what you're
> looking for. http://www.emstrom.com/~emstrom/tests/evorderform.htm (.js is
> at view-source:http://www.emstrom.com/~emstrom/tests/evorderform.js)
>
> -Esther
>

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list