Couplet-style Flash ads that are symmetrical on both sides of the page are very common. Let’s not talk about how to create couplet ads today. We will mainly talk about the code of the small “×” (close button) in Flash ads and its connection with the external web page environment. The production of this close button also requires a bit of knowledge.
The specific steps are as follows: Draw a small “×” shape to close the button. This shouldn’t be difficult, right? After all are selected, press the F8 key to convert it into a "button" component. After clicking to select this small button, press the F9 key to open the action panel and add the following code:
<strong>以下为程序代码:</strong><br>on (release)<br>{<br> getURL("FSCommand:", "");<br>}
<strong>以下为程序代码:</strong><br><!-- 对联开始 --><br><SCRIPT language=JavaScript event=FSCommand() for=dl> <br>duilian2.style.visibility='hidden'; <br>duilian3.style.visibility='hidden'; <br></SCRIPT><p><SCRIPT language=JavaScript> <br>function winload() <br>{ <br> duilian2.style.top=20; <br> duilian2.style.left=5; <br> duilian3.style.top=20; <br> duilian3.style.right=5; <br>} <br>//if(document.body.offsetWidth>800){ <br>{ <br> 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>" <br>+"<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>"); <br>} <br>winload() <br>//} <br></SCRIPT><br><!-- 对联结束 --></p>
Insert the above code into any web page, then copy the couplet Flash to the same directory as that web page, and you can view it when browsing. Do you feel like you have learned a trick again?