Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image in an other frame

Status
Not open for further replies.

coorgun

Technical User
Jan 21, 2001
1
DE
hi!
how can i change a image in an other frame?
i tried it like
parent.frames['aaa'].document.images['bbb'].src="ccc.gif";
but it doesn't work.
can you help me?

thank you
Max
 
All this loks correct to me, you must have some error either in calling the method, or one of the names is incorrect.

try it again -Ben. "Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer"
 
what you wrote works in ie 4 +
it won't in ns < 6
 
Indeed it wont... you need to do


myImage = new Image
myImage.src = 'ccc.gif'

in the head to precache the image. Then :

parent.frames['aaa'].document.images['bbb'].src=&quot;myImage.src&quot;;

Matt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top