Philip,
I pesume you are performing a function in frame 'A' which needs to set the
background poperty in frame 'B'??? This is how you do it (IE)...
In frame 'A' do a parent.chgBack()
In your frameset template setup function chgBack() to simply call function
B.chgImg()
In frame 'B' function chgImg() simple perform document.body.background =
'image.jpg'
This works for me on IE5. NN does not support document.body.background.
Mark.
----- Original Message -----
From: Philip Arnold - ASP <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 31, 2000 2:43 AM
Subject: RE: JavaScript background image question
> > Try the following......
> >
> > document.body.background = 'image.jpg'
> >
> > The will change the background property within your <body> tag.
> > It will NOT
> > change a BODY style sheet background-image attribute because of the url
> > attribute I presume. If you want to see the attribute from a style
sheet
> > you can give the body tag an ID and reference it by
> > document.all.IDname.style.backgroundImage (in IE only) but you can not
> > modify it.
>
> Mark,
>
> This doesn't do anything visually, but JS knows it's changed (if you
alert()
> it)
>
> The problem is that it's for a frame, so it's parent.FrameName.document.
> which means it doesn't change properly
>
> I've tried changing with bgColor, but that has no effect either (again, JS
> knows it's changed)
> Also, I have textured backgrounds, so I can't just change the color.
>
> Philip Arnold
> ASP Multimedia Limited
> T: +44 (0)20 8680 1133
>
> "Websites for the real world"
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.