|
-
script to change htm b/ground color?
Hello All!
Q. Can I call a serverside script ( perhaps using getURL ) to change the background color of the .htm file that has my swf embedded into it?
I'm just like that fly walking through the barrel of honey - stuck!
A. ---------------?!?
Would appreciate a little pointer here,
Cheers,
Scott
-
Senior Member
It could be done with javascript
in between the <head> and </head> tags of the page add this function
<script>
function changeBG(col) {
document.bgColor=col;
}
</script>
then in flash you could use something like
getURL("javascript:changeBG('red');");
or
getURL("javascript:changeBG('#ff0000');");
-
The Supreme Shaman and Keeper of Polar Lights
Hi !
And why not to say just:
getURL("javascript:document.bgColor='#ff0000'; void(0);");
without editing HTML page ? :)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|