Including a file?

Discussion in 'HTML & Website Design' started by prilep, Apr 2, 2007.

  1. #1
    Hey guys sorry if i posted in the wrong section i will report it to the mods just in case. My question was i have a .swf. I did some animation and i want to put it on my site. For example how would i make it like when they go to animation.html they see the SWF file playing. What code do i put in the html?? Green rep to anyone that helps me.

    Thanks

    - Prilep :D
     
    prilep, Apr 2, 2007 IP
  2. b4uindia.com

    b4uindia.com Peon

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="779" height="50" vspace="2">
    <param name="movie" value="yourfilename.swf">

    <param name="quality" value="High">
    <embed src="yourfilename.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="779" height="50" quality="High"></object>
     
    b4uindia.com, Apr 2, 2007 IP
    prilep likes this.
  3. Freshfroot

    Freshfroot Well-Known Member

    Messages:
    270
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #3
    you should search google for it or better yet, use DreamWeaver, it will help you out a lot with all types of codes ;)
     
    Freshfroot, Apr 2, 2007 IP
  4. jawanda

    jawanda Peon

    Messages:
    151
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you do use dreamweaver, simply go to Insert->Media->Flash.

    Or, if you want a better method, use swfobject. (see blog.deconcept.com/swfobject/) It is a little bit of javascript that can detect if flash is installed or not, get rid of that lame click-to-activate thing that IE does, and more. A better way to embed.
     
    jawanda, Apr 2, 2007 IP
    prilep likes this.