Flash pop-up ad window press twist production

Source: Internet
Author: User
Tags html page
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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.