How can i add .SWF file In HTML?

  • shreya shah
  • Born
  • Born
  • shreya shah
  • Posts: 3

Post 3+ Months Ago

i want to add .SWF file using HTML..What is the code for this ?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

What have you tried so far?
  • Madzmar
  • Newbie
  • Newbie
  • User avatar
  • Posts: 8

Post 3+ Months Ago

assuming the .swf file and your index.html or any html file that should contain the .swf file is located in the same directory you can add this code to after <body> tag
Code: [ Select ]
 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="100">
                    <param name="movie" value="yourflash.swf" />
                    <param name="quality" value="high" />
                    <embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
                </object>
  1.  
  2. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="100">
  3.                     <param name="movie" value="yourflash.swf" />
  4.                     <param name="quality" value="high" />
  5.                     <embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
  6.                 </object>

 
 
with this you can add your .swf file to the script your running... assuming that your swf file is name as yourflash.swf then having the same directory as the script running it the the flash should run or can be added immediately...
 
you can also place the swf file inside a <div> tag
 
example:
Code: [ Select ]
<div id="flashContainer">
 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="100">
<param name="movie" value="yourflash.swf" />
<param name="quality" value="high" />
<embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
                </object>
 
</div>
 
  1. <div id="flashContainer">
  2.  
  3. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="100">
  4. <param name="movie" value="yourflash.swf" />
  5. <param name="quality" value="high" />
  6. <embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
  7.                 </object>
  8.  
  9. </div>
  10.  

Hope i somehow answered your question.... goodluck in your webdeveloping
Moderator Remark: Use [code][/code] to encapsulate code snippets
  • charlesying
  • Born
  • Born
  • charlesying
  • Posts: 2

Post 3+ Months Ago

in Macraomedia Dreamweaver you can do it easily by simply inserting the file

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 61 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.