to show image or to show flash

Discussion in 'HTML' started by Disco Octopus, May 13, 2004.

  1. Hi,

    I would like to know if there is the ability to have a flash embeded, but
    when the flash is not available on the browser, then i want to show an
    image.

    Thanks
     
    Disco Octopus, May 13, 2004
    #1
    1. Advertising

  2. Disco Octopus

    j Guest

    In article <Z6Foc.2094$>, Disco Octopus
    <> wrote:

    > Hi,
    >
    > I would like to know if there is the ability to have a flash embeded, but
    > when the flash is not available on the browser, then i want to show an
    > image.
    >
    > Thanks


    might be using the object tag, or you could do some flash detect in php
    and load either image or swf based on that

    //pseudo code:
    if $flashpresent{
    $htmlsource="emded/object\"my.swf\" etc"
    } else {
    $htmlsource="imgscr=\"blahblah.jpg\"" etc
    }


    j
     
    j, May 13, 2004
    #2
    1. Advertising

  3. Disco Octopus

    SpaceGirl Guest

    "Disco Octopus" <> wrote in message
    news:Z6Foc.2094$...
    > Hi,
    >
    > I would like to know if there is the ability to have a flash embeded, but
    > when the flash is not available on the browser, then i want to show an
    > image.
    >
    > Thanks


    Yes. Use META REFRESH in the head of your page (google for it).

    Create an HTML page that contain a tiny flash movie, and meta refresh with a
    5 second delay. The flash movie contains a redirect to the "flash version"
    of your site, while the meta refresh contains a redirect to a non-flash
    version of your site. So, if the little flash movie containing a refresh
    manages to load and redirects, obviously the user has Flash installed. If,
    after 5 seconds, the flash movie has not managed to redirect the user,
    either they are on a massively slow connection or dont have Flash installed;
    in both cases a non-flash site would be better anyway.
     
    SpaceGirl, May 13, 2004
    #3
  4. Disco Octopus

    Whitecrest Guest

    Whitecrest, May 13, 2004
    #4
  5. Disco Octopus wrote:

    > I would like to know if there is the ability to have a flash embeded, but
    > when the flash is not available on the browser, then i want to show an
    > image.


    <object data="flash.swf">
    <img src="image.png" alt="text">
    </object>

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?page=132
     
    Toby A Inkster, May 13, 2004
    #5
  6. On Thu, 13 May 2004 07:05:29 GMT, Disco Octopus
    <> wrote:

    > I would like to know if there is the ability to have a flash embeded, but
    > when the flash is not available on the browser, then i want to show an
    > image.


    Here's something that works. You can use an image or whatever you want to
    show when Flash isn't installed. Also, your HTML will be compliant and all
    that.

    <http://www.alistapart.com/articles/flashsatay/?

    --
    Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
     
    Foofy (formerly known as Spaghetti), May 14, 2004
    #6
  7. Disco Octopus wrote:
    > Hi,
    >
    > I would like to know if there is the ability to have a flash embeded,
    > but when the flash is not available on the browser, then i want to
    > show an image.
    >
    > Thanks


    I have craeted the following page, but it is not doing what I expect...

    http://mycoolfish.com/t/cow.html

    In IE 5.5 I am seeing the <object> - this is cool.
    In operar 7.x I am seeing the <embed> - this is cool too.
    In Netscape Communicator 4.79 I see the cow.gif - this is cool too.
    In Lynx I am not seeing anything - I expect (well, was hoping) to see at
    least one of the alt= texts. (dunno which one, was trying to guess)
    In the new-ish mozillas (firfox 0.7, 0.8, netscape 7.1, 7.0, mozilla 1.4,
    1.5, 1.6) I am not seeing anything. I would at least like to see the
    "cow.gif" if not the flash files.

    Any ideas?
    Thanks
     
    Disco Octopus, May 14, 2004
    #7
  8. Disco Octopus wrote:

    > I have craeted the following page, but it is not doing what I expect...
    >
    > http://mycoolfish.com/t/cow.html


    As per my other post, get rid of the <embed> tag altogether. It's only
    needed by NN4 and below and it's not part of any HTML standard. Secondly
    add the attribute 'data="file.swf"' to the <object> tag. This will load
    the flash file in Opera and Mozilla-based browsers.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?page=132
     
    Toby A Inkster, May 14, 2004
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bernie
    Replies:
    0
    Views:
    652
    Bernie
    Sep 5, 2004
  2. Joe
    Replies:
    0
    Views:
    696
  3. Jim Higson
    Replies:
    1
    Views:
    553
    Jim Higson
    Sep 21, 2004
  4. Replies:
    8
    Views:
    23,640
    SABOND21
    Feb 9, 2012
  5. =?Utf-8?B?am9l?=
    Replies:
    2
    Views:
    3,432
    Winista
    Jul 24, 2006
Loading...

Share This Page