The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 9 of 9

Thread: How to insert SWF instead of JPG with CSS

  1. #1

    How to insert SWF instead of JPG with CSS

    I have this style where is displaye the JPG image on the top of my page:

    #zahl	{
    TOP image
    	position: relative; width:730px; height:300px; left:0; top:0;
    	margin:0; padding:0; overflow:hidden;
    	background:#eea405 url('nat2-top-r.jpg') no-repeat;
    I would like to have there nat2-top-r.SWF file instead of nat2-top-r.jpg

    Thanks for help

  2. #2
    home cooking is killing the restaurant industry
    You can't use SWFs as backgrounds with CSS.. at least not until SWFs get integrated with browser rendering engines (which will probably never happen )
    There are only 10 kinds of people in this world:
    Those that might know ternary, those that do, and those that don't
    Say NO to DRM.

  3. #3
    OK I see thank you.
    I must trink about how to do it without my css template.
    Any Idea?
    I will write it directly in HTML

  4. #4
    Embed your swf file into the HTML code. Thats the most you can do. Here is the code for it:
    <object width="550" height="400">
    <param name="movie" value="yourfilename.swf">
    <embed src="yourfilename.swf" width="550" height="400">
    Is it sufficient?


  5. #5
    Oh yes, I forgot to mention.. You need to edit the text in bold to suit your swf file's properties.


  6. #6
    yes, it works great. Thanks

  7. #7
    yes, it works great. Thanks

  8. #8
    Works, here an example

    that is from this FLASH project from here

  9. #9
    Hi to all,

    You have to use it in index.jpg file through this code:-
    <object codebase=",0,124,0" width="900" height="160">
    <param name="movie" value="<?php echo $mosConfig_live_site;?>/templates/nameoftemplate/images/logo.swf" />
    <param name="quality" value="high" />
    <embed src="<?php echo $mosConfig_live_site;?>/templates/nameoftemplate/images/logo.swf" quality="high" pluginspage="" type="application/x-shockwave-flash" width="900" height="160"></embed>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012