|
Answer by: Stuart Pierce, Knowledge Base
Support
In order to display a Flash movie (.swf
file) on your website you have to include certain HTML code in the
source of the particular web page. The exact code that needs to be
added contains the HTML OBJECT and EMBED tags. These two tags are
used to reference to the actual flash files, and to specify display
options as well.
In the HTML example below it is assumed
that both your HTML file and the flash movie file (named flash_movie.swf)
are uploaded to the same directory of your webspace (the html directory
for Unix-based hosting plans or the WWWROOT directory for
Windows-based hosting plans).
EXAMPLE:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="550" HEIGHT="400" id="flash_movie.swf">
<PARAM NAME=movie VALUE="flash_movie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="http://yourdomain.com/flash_movie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
NAME="flash_movie.swf" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
Here is a brief explanation of the required
code attributes:
- Classid: should appear exactly as in the example above because they present
important information to the browser (OBJECT tag).
- Codebase: identifies the location of the Flash Player plug-in so that the
user can download it, if it is not already installed (OBJECT tag
only).
- PARAM
NAME=movie: the value of this attribute specifies the location
of the flash file relative to the location of the HTML file (in
this case it is assumed that both are placed in the same directory).
You may also enter the full URL of the flash file: http://yourdomain.com/flash_movie.swf
(OBJECT tag only).
- SRC: specifies the location
(URL) of the movie to be loaded (EMBED tag only). This is equivalent
to the movie attribute of the OBJECT tag.
- PLUGINSPAGE: identifies the location
of the Flash Player plug-in so that the user can download it, if
it is not already installed (EMBED tag only). This is equivalent
to the codebase attribute of the OBJECT tag.
- WIDTH,
HEIGHT: specify the width and height of the flash movie screen
in pixels.
Note: You might have noticed that the OBJECT
and EMBED tags have similar functionality. However, both are needed
due to the specifics of the different browser types.
Related links:
|