View Full Version : changing html using FLASH?????
nindo
05-23-2001, 08:02 PM
i want to change the colour of my html background when a button is clicked, (the button is made in flash) can someone tell me how to do this?
Put this in the head section of the html page that holds the swf file:
<title>BkdCol</title>
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
function chCol(){
document.bgColor=330066;
}
</SCRIPT>
and for the Flash button;
GetURL("javascript:chCol()")
just change the 330066 to whatever color you want.
~mgb
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.