insert swf in css

Discussion in 'CSS' started by 0senjed0, Jun 9, 2010.

  1. #1
    in http://ariadesign.ir/ark/ under the black menu i need to insert new .swf file but i can't and it load from css file . when i edit this file to :
    #head {
    height:164px;
    background:url(../images/head.swf) no-repeat;
    padding-left:20px;}

    it dose not load head.swf and i'm sure my code is wrong . what should i do ?
     
    0senjed0, Jun 9, 2010 IP
  2. windy

    windy Active Member

    Messages:
    1,093
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #2
    to insert .swf file,try use code like this:
    "<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="767" height="45" title="Call Britannia main menu">
    <param name="movie" value="yourfile.swf" />
    <param name="quality" value="high" />
    <embed src="yourfile.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="767" height="45"></embed>
    </object>
     
    windy, Jun 9, 2010 IP
  3. dlb

    dlb Member

    Messages:
    203
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    35
    #3
    ^ Should have used a code box for that fugly hunk of text!

    He's right though, unless you go with the HTML5 route and use;

    <video src="movie.webm" controls>
    Your browser does not support the video tag.
    </video>
    
    Code (markup):
    Reference: http://en.wikipedia.org/wiki/HTML5_video

    Remember that HTML5 is not fully supported yet, but it may be worth knowing this for future's sake.

    Oh, flash videos are structure, not visual - meaning that you use HTML to insert it and not CSS.
     
    dlb, Jun 10, 2010 IP
  4. trixinitynet

    trixinitynet Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    im pretty sure .swf only really works by embedding it or using iframes.
     
    trixinitynet, Jun 10, 2010 IP
  5. johagulo

    johagulo Peon

    Messages:
    879
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You cannot load swf files in css, only from html. Go to insert and click on media/ flash
     
    johagulo, Jun 12, 2010 IP
  6. Team-Allita-Inc.

    Team-Allita-Inc. Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Since Shockwave Flash (Swf) is an object entity, you can not have it as a background but embed it instead. However you can take a screenshot and use the result image as a background to place in the css as a header, if this is what you are trying to accomplish.
     
    Team-Allita-Inc., Jun 30, 2010 IP