Hi,
Is there any way to have a flash header in a website using navigatetoURL to load in different content into a DIV container on the site?
Thanks,
Hi,
Is there any way to have a flash header in a website using navigatetoURL to load in different content into a DIV container on the site?
Thanks,
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” />
<title>Untitled Document</title>
<style>
#demo
{
width:500pt;
height:400pt;
font-family:Arial, Helvetica, sans-serif;
font-size:medium;
background-image:url(“images/bground3.gif”);
background-repeat:repeat;
}
</style>
<script type=“text/javascript”>
function changeSettings(thiscolor, thisfont, thissize, thisbg){
var bg='images/'+thisbg+'.gif';
document.getElementById("demo").style.backgroundImage="url("+bg+")";
document.getElementById("text").style.color = thiscolor;
document.getElementById("text").style.fontSize=thissize;
switch (thisfont)
{
case 'Arial':
document.getElementById("demo").style.fontFamily = "Arial, Helvetica, sans-serif";
break;
case 'Verdana':
document.getElementById("demo").style.fontFamily = "Verdana, Arial, Helvetica, sans-serif";
break;
case 'Times New Roman':
document.getElementById("demo").style.fontFamily = '"Times New Roman", Times, serif';
break;
case 'Courier':
document.getElementById("demo").style.fontFamily = '"Courier New", Courier, monospace';
break;
}
}
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
the body contains another div called text:
<div id=“text”>
Your message will appear here.
</div>
this is a sample html code … that changes color, background image, and font with dhtml with command from flash…
flash calls the changeSettings function as :
this.getURL(“javascript:changeSettings(’”+fntcolor+"’,’"+fntName+"’,’"+fntSize+"’,’"+bgimage+"’)");
or you could also use externalInterface if you dont favour old flash players
Thanks everyone, I wasn’t aware of the externalInterface in as3, I think this is exactly what I need. I’ll try it later today and let you know.
:: Copyright KIRUPA 2024 //--