Forum Moderators: open
Has anyone got a basic mouseover script to work while showing a flash movie else where on a page?
Thanks
I have had some success with the following code
<html>
<head>
<script language="javascript">
<!--
function movein(which,html){
which.style.background='#ff8a06'
if (document.getElementById)
document.getElementById("boxdescription").innerHTML=html
else
boxdescription.innerHTML=html
}
function moveout(which){
which.style.background='#ff8a06'
if (document.getElementById)
document.getElementById("boxdescription").innerHTML=' '
else
boxdescription.innerHTML=' '
}
//-->
</script>
</head>
<body bgcolor="#ffffff" text="#ffffff" link="#B82519" vlink="#ffffff">
<table width="410" bgcolor="#C30000" border="0" cellpadding="2" cellspacing="1">
<tr>
<td><FONT face="Verdana" size="1" COLOR="#FEFBCC"><b>>> DECORATIVE TIMBER</b></FONT></td>
<tr>
<td bgcolor="#FF8A06" class="menu" id="choice1" onmouseover="movein(this,'<EMBED SRC=stairs1.swf WIDTH=400 HEIGHT=60 PLAY=true LOOP=false QUALITY=high PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED>')" onmouseout="moveout(this)"><a href="index.html"> STAIR BALUSTRADING</a></td></tr>
<td bgcolor="#FF8A06" class="menu" id="choice2" onmouseover="movein(this,'<EMBED SRC=directory-banner.swf WIDTH=400 HEIGHT=60 PLAY=true LOOP=false QUALITY=high PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED>')" onmouseout="moveout(this)"><a href="index.html"> MOUDLINGS</a></td></tr>
<td bgcolor="#FF8A06" class="menu" id="choice3" onmouseover="movein(this,'Mmmmm Doughnuts')" onmouseout="moveout(this)"><a href="index5.html"> FLOORING</a></td></tr>
<tr>
<td height="65"><font id="boxdescription" face="Verdana" size="2"></font></td></tr>
</table>
</body>
</html>
if you are using dreamweaver get the javascript integration kit for flash 5 extension from the MM site, it has many built in behaviours including what you want here.