HOW TO EMBED A SHOCKWAVE MOVIE IN YOUR HTML FILE:
<EMBED SRC="yourfile.dcr" WIDTH="100" HEIGHT="100" >
The width and height of your Shockwave movie can be found
in the object's "description field" in the Stock Object's Library
("width x height pixels").
EXTRA SHOCKWAVE PARAMETERS!
Your Shockwave movie may also accept extra parameters in it's HTML EMBED tag. These parameters allow you to customize certain features of your shockwave movie to suit your needs. Please look in the Stock Objects Library's "description field" for your object to see which, if any, of your Shockwave's features are customizable. Parameter descriptions for all customizable features are listed below. Remember, your shockwave only accepts the parameters referred to in the object's "description field" in the Stock Objects Library.
------
I. Customizable background color:
Change the background color of the Shockwave to match your page.
Modify the background color of your shockwave by including an extra parameter called "swBackColor" in the EMBED tag.
<EMBED SRC="blowup.dcr" HEIGHT="70" WIDTH="304" swBackColor="#FF3399">
The "swBackColor" parameter passes a Hexidecimal RGB color value to the Shockwave, telling it what color to make the background.
This way you can get a seemless blend when the Shockwave appears on your page. Just use the same value in the BODY BGCOLOR of your HTML page and the "swBackColor" of the Shockwave. These colors produce fairly seemless results on most machines.
------
2. Customizable button colors:
Change the background color of a button Shockwave.
The rectangular button Shockwave (eg. cool, hot, info, email) can be four different colors, adjusted by modifying the "swColor" parameter in the EMBED tag.
<EMBED SRC="emailb.dcr" HEIGHT="70" WIDTH="304" swColor="blue" >
OR
<EMBED SRC="cool.dcr" HEIGHT="70" WIDTH="304" swColor="yellow" >
Unlike the "swBackColor" parameter, only four color names are valid (any invalid names default to "blue"):
blue
green
yellow
purple
Note: On computers with 8-bit displays (256 colors) the buttons will always appear blue.
-----
3. Customizeable URL links
Change the URL referenced by a Shockwave.
Most button Shockwaves that link to another page (eg. cool, hot, info, email) can have the URL modified by including an extra parameter called "swURL" in the EMBED tag. Shockwaves that link to another page when a certain condition happens (for example you might "win the jackpot" in a shockwave game) can also usually modify the URL link using the "swURL" parameter.
<EMBED SRC="emailb.dcr" HEIGHT="70" WIDTH="304" swURL="yourname@yourdomain.com" >
OR
<EMBED SRC="cool.dcr" HEIGHT="70" WIDTH="304" swURL="cool/index.htm" >
The "swURL" parameter passes an address to the Shockwave, telling it which location to access when the button is clicked.
The "swURL" address can be relative, like "cool/index.htm" (note that addresses are relative to the location of the Shockwave file directory - important!), or absolute, such as "http://www.yourdomain.com/cool/index.htm".
Back To: HOME / Macromedia Page / Animated Gifs