带关闭的flash浮动广告怎么做
比如sina首页右下方的浮动广告,点一下广告上的”关闭”,就关闭了广告.是怎么做出来的?请详细说明制作过程,谢谢
参考答案:网页里面的JS代码如下:
<SCRIPT language=JavaScript event=FSCommand() for='eclose'>
funasiaright.style.visibility='hidden';
</script>
<script>
function winload()
{
funasiaright.style.top=0;
funasiaright.style.left=0;
}
document.write("<div id=funasiaright style='position: absolute;visibility:visible;z-index:100'><EMBED src='images/Flash_MidAutumn.swf' quality=high WIDTH=1004 HEIGHT=636 TYPE='application/x-shockwave-flash' id='eclose' wmode=transparent></EMBED></div>");
winload()
</SCRIPT>
从上面代码你可以找到你所显示的flash文件,修改成你自己的...
Flash关闭按钮的ACTION如下:
on (release) {
fscommand("quit",true)
}
给你看一个我做的效果: