Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Replacing .swf with .gif

    I am struggling to get the coding right to replace a .swf with a .gif/.jpg if a user does not have a flash player installed.

    So far, I have this,

    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="595" height="125" title="test3">
    <param name="movie" value="../assets/images/flash/test3.swf" />
    <param name="quality" value="high" />
    <embed src="../assets/images/flash/test3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="595" height="125"></embed>
    </object>
    This coding actually works, in a sense, that it shows a download image (get flashplayer) if no flash is detected. BUT I would like to have my own image appear instead?

    Please help a confused person, lol!

  • #2
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts

    swfObject

    I'd take a look at this:

    swfObject

    It's a pretty good way of embedding your Flash stuff, and it offers a simple way to offer fallback content.

    Using SWFObject is easy. Simply include the swfobject.js Javascript file, then use a small amount of Javascript on your page to embed your Flash movie. Here is an example showing the minimum amount of code needed to embed a Flash movie:
    Code:
    <script type="text/javascript" src="swfobject.js"></script>
    		
    <div id="flashcontent">
      This text (or your image) is replaced by the Flash movie.
    </div>
    
    <script type="text/javascript">
       var so = new SWFObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
       so.write("flashcontent");
    </script>
    (emphasised text mine)

    I'd take a look, it's used by some major websites, Adobe being just one.

    Kind regards,

    Gary

  • #3
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    Quote Originally Posted by Graft-Creative View Post
    I'd take a look at this:

    swfObject

    It's a pretty good way of embedding your Flash stuff, and it offers a simple way to offer fallback content.


    (emphasised text mine)

    I'd take a look, it's used by some major websites, Adobe being just one.

    Kind regards,

    Gary
    Is this the same code used to sidestep that annoying IE update where you have to actually CLICK the flash movie to activate its use?
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #4
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,788
    Thanks
    8
    Thanked 131 Times in 129 Posts
    Quote Originally Posted by StupidRalph View Post
    Is this the same code used to sidestep that annoying IE update where you have to actually CLICK the flash movie to activate its use?
    yes indeed. plus it offers that easy advantage discussed above. you can slap a non flash navigation under it and all sorts of things.
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #5
    New Coder
    Join Date
    Nov 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ("movie.swf", "mymovie", "200", "100", "7", "#336699");

    can you please explain what all this variables are?

    Thank you very much.

    Jauzi

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I'm guessing you didn't read the faqs from the site posted. If you had it would have told you what everything was. You need to actually read. http://blog.deconcept.com/swfobject/#howitworks
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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