Forum Moderators: open

Message Too Old, No Replies

Mouseovers and flash movies

Making mouseover work with flash movies

         

djbond

1:29 pm on Nov 8, 2001 (gmt 0)



Hi everyone, this is the 1st time I've posted to this fourm so I hope you can help.

Has anyone got a basic mouseover script to work while showing a flash movie else where on a page?

Thanks

Marshall

5:17 pm on Nov 8, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



djbond,

Welcome to Webmaster World. I think before anyone can answer the question is knowing what you want the mouseover to do.

djbond

11:14 am on Nov 12, 2001 (gmt 0)



What I was wanting to happen was when you move your mouse over a link (either text or graphic) a flash movie would play further down the page.

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>

click watcher

11:34 am on Nov 12, 2001 (gmt 0)



can't help with your problem but ...

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.