具體步驟如下: 畫一個小“×”的關閉按扭的圖形,這應該不難吧?全部選中後,按下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拷貝到和那網頁同目錄下,浏覽就可以看到了。是不是又感覺學會了一招兒?