all groups > flash (macromedia) > october 2004 >
You're in the

flash (macromedia)

group:

I really need help. Background Problem


I really need help. Background Problem Ben Geier
10/28/2004 6:36:15 PM
flash (macromedia): Okay, I have a transparent flash site and each time it goes to new a
section I want the html background image to change. I know you can
change the the bgcolor on an html page but can you change the background
image? Here's what I have and it's not working. Please help.

----javascript in my html page----
<script language="JavaScript">
function changeBackground(newBackground) {
if (window.document && window.document.background) {
document.background = newBackground;
}
}
-->
Re: I really need help. Background Problem Ben Geier
10/28/2004 6:41:05 PM
sorry. here is the action for flash too.

Re: I really need help. Background Problem aliinhan
8/13/2005 11:22:48 PM

Just found out. Easy as 1-2-3.
write only this code to the button u want to change background image (u
do nothing else in HTML or in any other place):

on (release) {
getURL("javascript:document.body.background='new_bg_pic.jpg'");
}

Ali


--
aliinhan
------------------------------------------------------------------------
aliinhan's Profile: http://www.24help.info/member.php?userid=317
View this thread: http://www.24help.info/showthread.php?t=250591

www.24help.info - IT Newsgroups
AddThis Social Bookmark Button