Advertising tour in the online people must know that a small advertisement is the most common to come out of the things, but in some personalized pages, click a button, pop-up window is also a very practical function. Still use Flash to do the button interface, using JavaScript to implement the function, we have to do a click can pop the fixed size of the window button, the basic production methods and ideas and set to the homepage of the button is very similar, the following steps: Using the Text Tool T in the scene to create a text as "pop-up window", Select the selection tool, press the F8 key to convert to a "button" component, click the "button", press the F9 key to open the action panel, (figure: pop-up. tif)
Then enter the following very simple code:
On (release) {
GetURL ("Javascript:popupwindow ()");
}
This time you know what this code does, it just calls a JavaScript function on a Web page, so we're going to add a Popupwindow () function to the page that is released later. First save the movie, and then press F12 to publish the movie as an HTML page, then click on the button can not achieve the function we want, the key is that the Web page is missing a bit of code, still use Notepad or other web tools to open just published page, (figure: Pop-up 2.gif)
Between <body> and </body>, add the following code:
<a Href=javascript:popupwindow () ></A>
<script language= "JavaScript" >
function Popupwindow () {
window.open ("pop-up. htm", "", "height=640,width=500,menubar=0,resizable=0,scrollbars=0, status=0,titlebar=0,toolbar=0 , Left=0,top=0 ")
}
</script>
Above this JS shot is and this page in the same directory "pop-up." HTM ", so the corresponding directory must have this file to normal display, otherwise it will pop a" can not find the page "window, but we just as long as the pop-up, hehe, even we can" pop-up. htm "to" http:// Www.sddd.net "See what pops up?!"
Save, open the newly published page again, click the "pop-up Window" button, how, pop-up bar.