How To Make Flash A Background

Table of contents:

How To Make Flash A Background
How To Make Flash A Background

Video: How To Make Flash A Background

Video: How To Make Flash A Background
Video: ALAN BECKER - Backgrounds in Flash 2024, May
Anonim

Flash is a technology that allows you to create animation files. With their help, you can make an advertising banner or decorate your web page with flash elements, for example, insert an animated background on your website.

How to make flash a background
How to make flash a background

Necessary

  • - a computer with Internet access;
  • - browser;
  • - skills in working with HTML.

Instructions

Step 1

Use the simplest animations to decorate a web page.

Step 2

You can also use already created animated files posted on the Internet. They can be used as a background for a web page. Add an image as a background to your site code using the Background parameter. To do this, in the Body tag, make a link to the file.

Step 3

Insert a flash and a transparent background, for this, download the Swfobject. Js file, in the browser go to the link https://blog.deconcept.com/swfobject/swfobject.js. Save it to your computer. Include this file in the html-code of the page. To do this, use a script tag, for example:.

Step 4

Next, insert the flash into the web page. Use the code to do this. In the script tag add the following: var fl = new SWFObject ("Insert a link to the flash file", "movie", "209", "267", "6"); [B] fl.addParam ("wmode", "opaque"); [/B] (this parameter allows you to make a flash background.

Step 5

Connect tags in this order, i.e. first "Div", and only then the script. This method allows from the tag, as well as to get out of the situation when the user turns off the display of plugins and scripts, because when using the tag, when you hover the cursor over the flash file, the message "Click to activate this control" appears. In our case, this will not appear.

Step 6

To adjust the size of the flash background to the browser, experiment with the "100%", "100%", "8" parameter in the script tag. You can also set the min-width: 1000px parameter - for display in Opera and other browsers, and for Internet Explorer –width: 1000px. This way you can add a flash to the background of the page.

Recommended: