我的html页面中有2个swf,它们是视频和弹出窗口。当鼠标移到video.swf时,隐藏的popup.swf将显示并播放。
<body>
<object id="video" class="video" width="300" height="250">
<param name="movie" value="thumbnail.swf">
<embed src="thumbnail.swf" quality="high" width="300" height="250" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
</object>
<img class="image" src="300x250.jpg">
<object id="popup" class="popup" width="790" height="290">
<param name="movie" value="790x290.swf">
<embed src="790x290.swf" width="300" height="250"> </embed>
</object>
<script>
document.getElementById("video").onmouseover = over;
(function over()
{
alert("mouseovertest");
});
</script>
video.swf上的mouseover工作正常,但我不知道如何让popup.swf显示和播放。
答案 0 :(得分:0)
将其放入<script>
部分:
document.getElementById("popup").onmouseover = over;