The forums have permanently moved to forum.kirupa.com. 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:

    Code:
    #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
    4,029
    posts
    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:
    Code:
    <object width="550" height="400">
    <param name="movie" value="yourfilename.swf">
    <embed src="yourfilename.swf" width="550" height="400">
    </embed>
    </object>
    Is it sufficient?

    ShahZ

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

    ShahZ

  6. #6
    yes, it works great. Thanks

  7. #7
    yes, it works great. Thanks

  8. #8
    Works, here an example

    http://h1.ripway.com/djenkins2404/010101.html

    that is from this FLASH project from here
    http://www.webdesign.org/flash-swish...40.html#c_6716

  9. #9
    Hi to all,

    You have to use it in index.jpg file through this code:-
    <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,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="http://get.adobe.com/flashplayer/" type="application/x-shockwave-flash" width="900" height="160"></embed>
    </object>

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 kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012