DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Insert SWF Into Html Page

05.23.2006
| 209415 views |
  • submit to reddit
        // Put an swf or flash file onto your webpage with this code. (yoou will need to change the size (in pixels) and i am using an .swf called 2bigpinkballs2.swf, so you will need to change that too.) both the swf and the size need to be changed twice or it will look strange.

     <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

WIDTH="850"

HEIGHT="610"

CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">

<PARAM NAME="MOVIE" VALUE="2bigpinkballs2.swf">

<PARAM NAME="PLAY" VALUE="true">

<PARAM NAME="LOOP" VALUE="true">

<PARAM NAME="QUALITY" VALUE="high">

<PARAM NAME="SCALE" value="noborder">

<EMBED SRC="2bigpinkballs2.swf"

WIDTH="850"

HEIGHT="610"

PLAY="true" 

LOOP="true"

QUALITY="high" 

scale="noborder"

PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> 

</EMBED>

</OBJECT>