时间:2020-10-17 10:42:11 | 栏目:JavaScript代码 | 点击:次
具体步骤如下: 画一个小“×”的关闭按扭的图形,这应该不难吧?全部选中后,按下F8键转化成一个“按扭”组件,点击选中这个小按扭后,按下F9键打开动作面板,添加以下代码:
以下为程序代码:
on (release)
{
getURL("FSCommand:", "");
}
以下为程序代码:
<!-- 对联开始 -->
<SCRIPT language=JavaScript event=FSCommand() for=dl>
duilian2.style.visibility='hidden';
duilian3.style.visibility='hidden';
</SCRIPT><SCRIPT language=JavaScript>
function winload()
{
duilian2.style.top=20;
duilian2.style.left=5;
duilian3.style.top=20;
duilian3.style.right=5;
}
//if(document.body.offsetWidth>800){
{
document.write("<div id=duilian2 style='position: absolute;visibility:visible;z-index:1'><EMBED src='/images/banner.swf' quality=high WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=dl></EMBED></div>"
+"<div id=duilian3 style='position: absolute;visibility:visible;z-index:1'><EMBED src='/images/banner.swf' quality=high WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=dl></EMBED></div>");
}
winload()
//}
</SCRIPT>
<!-- 对联结束 -->
把上边那段代码,插入到任何网页的之间,然后把那个对联Flash拷贝到和那网页同目录下,浏览就可以看到了。是不是又感觉学会了一招儿?