How to insert a flash-roller

How to insert a flash-roller

The rollers constructed on the basis of flash technology help to create unique design for the website. The flash elements integrated into html allow to diversify the page and to make it brighter. The markup language of web pages allows to implement active contents in the website by means of several descriptors.

Instruction

1. Load a roller in the swf format from the Internet, having used one of specialized resources. If you are familiar with technology of creation of flash-clips, can independently create the necessary animation by means of the Adobe Flash program.

2. After saving the file of animation open a HTML page in any text editor by means of which you are engaged in adding of the code for your website. You can use standard means of Windows, having opened the necessary code in the Notepad program. It is also possible to use editors of Adobe Dreamweaver or Notepad ++.

3. Having opened the web page in the editor, you will see the code which needs to be edited for conversion of the page. Pass into that part of the page where you want to insert a flash-roller. If the page empty, animation should be located in a document body, i.e. within action of the <body> tag </body>.

4. For a roller insert on the page the object and embed elements are used. Write the following code:

<object width = "600" height = "600">
<param name=" movie" value= of" put_do_rolik.swf">
<embed src = "put_do_rolik.swf" of width = "600" height = "600">
</embed>
</object>

This code adds a player which will lose a flash-roller with permission of .swf on the page. The embed element duplicates object for ensuring compatibility with old versions of browsers. The width and height attributes of the object and embed elements set width and height of a window for playback of the file respectively. The param element serves for parameter passing to an embedded object. In this case as the movie parameter the path to flash-roller data source, for example is transferred to a directory of its placement on the hard drive and a name of the flash-file.

5. After the end of input of the code save the made changes in a HTML page and check result. If everything is correct, your roller will be displayed on the web page. If the roller is not shown, check correctness of writing of the code and path to the .swf file. Flash can also not be displayed if you use old versions of browsers, for example Internet Explorer 5.

Author: «MirrorInfo» Dream Team


Print