Add flash file in css !

Discussion in 'CSS' started by pulikuttann, May 16, 2007.

  1. #1
    I am new to css.

    How can I add a flash button with css ?

    I mean can I do it with any changes to this

     
    pulikuttann, May 16, 2007 IP
  2. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you have to insert the flash directly into the html.

    EDIT: although a way you might be able to do it is with:

    .flash-button {
    content: "[B]code for flash inserted here[/B]"; 
    display: block;
    width: 50px;
    height: 50px;
    }
    Code (markup):
    note that even if that works which i actually doubt and have never tried... it would not be the proper way to do it
     
    Mr Blonde, May 16, 2007 IP
  3. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #3
    (In your HTML, *NOT* CSS)

    <object type="application/x-shockwave-flash" data="file.swf" width="1337" height="1337">
    <param name="movie" value="file.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    </object>

    object is supported by modern browsers, IE gets the param file.

    AFAIK, IE doesn't support the "content" property, so it would be stupid using it.
     
    soulscratch, May 17, 2007 IP
  4. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Nah it dosn't. Just want to make clear too that although i posted it may be possible that way in CSS... it isn't recommended as it isn't semantic, or accessible and would only cause problems.

    Also if you plan to insert flash without the embed tags i reccomend you read this article on a list apart
     
    Mr Blonde, May 17, 2007 IP