Results 1 to 3 of 3

Thread: how to put an swf into a css document

  1. #1
    Join Date
    Sep 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to put an swf into a css document

    Hi people

    This may be a dumb question that has no real answer but here we go anyway.

    Is there anyway that I can embedd an swf using css with no reference to the swf in the HTML document.

    Cheers in advance

    Triad

    http://www.triaduk.co.uk

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Sorry, there is no way to embed .swf files in CSS, not for the moment anyway. You can only use images as backgrounds so you may have to a wait a while for this to be implemented. Why do you want it in CSS anyway? What does CSS do that HTML doesn't in this case? Or is it that you want the swf file on multiple pages and want to just use a class instead of using HTML on each page?

  3. #3
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by Schmoopy View Post
    Or is it that you want the swf file on multiple pages and want to just use a class instead of using HTML on each page?
    you could do this easily through Javascript, but you would need to make the assumption that if someone has Javascript disabled, he/she would also not like to view flash movies.

    The best way to accomplish this is to use a template file, pass the appropriate values in through some server-side language, then embed the template in whatever number of pages.

    The above is all speculating that multiple pages was the actual goal of the question.

    If it wasn't, than the best way would be to just hard-code the swf file into the actual file with all the appropriate parameters.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •