check browser plag in

Discussion in 'HTML' started by steve, Oct 26, 2003.

  1. steve

    steve Guest

    Hi

    Can I do something like this:
    For example I have a flash banner on my page
    If I make a gif animation something similar to the flash one
    can I put some script to check the browser plug in and if the browser
    have plug in flash to display the flash
    and if the browser do not have flash to display the gif image.
    How do I achieve that if it is possible

    Thanks
    steve, Oct 26, 2003
    #1
    1. Advertising

  2. steve wrote:

    > can I put some script to check the browser plug in and if the browser
    > have plug in flash to display the flash
    > and if the browser do not have flash to display the gif image.
    > How do I achieve that if it is possible


    <object type="application/x-shockwave-flash" data="flash.swf" height="100" width="150">

    <img type="image/gif" src="mypicture.gif" height="80" width="20"
    alt="Alternative text">

    </object>

    This will display the flash file, but if this is not possible will display
    the image file and if that isn't possible, display some alternative text.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?id=132
    Toby A Inkster, Oct 27, 2003
    #2
    1. Advertising

  3. steve

    steve Guest

    > steve wrote:
    >
    > > can I put some script to check the browser plug in and if the

    browser
    > > have plug in flash to display the flash
    > > and if the browser do not have flash to display the gif image.
    > > How do I achieve that if it is possible

    >
    > <object type="application/x-shockwave-flash" data="flash.swf"

    height="100" width="150">
    >
    > <img type="image/gif" src="mypicture.gif" height="80" width="20"
    > alt="Alternative text">
    >
    > </object>
    >
    > This will display the flash file, but if this is not possible will

    display
    > the image file and if that isn't possible, display some alternative

    text.

    It work fine if the browser do not have flash plug in.
    But if the browser have flash plug in it displaying both the flash
    movie and the gif animation.
    How can I make it to display only flash in that case?

    Thanks
    steve, Oct 27, 2003
    #3
  4. steve wrote:

    >> steve wrote:
    >>
    >>> can I put some script to check the browser plug in and if the browser
    >>> have plug in flash to display the flash
    >>> and if the browser do not have flash to display the gif image.
    >>> How do I achieve that if it is possible

    >>
    >> <object type="application/x-shockwave-flash" data="flash.swf"
    >> height="100" width="150">
    >> <img type="image/gif" src="mypicture.gif" height="80" width="20"
    >> alt="Alternative text">
    >> </object>

    >
    > It work fine if the browser do not have flash plug in.
    > But if the browser have flash plug in it displaying both the flash
    > movie and the gif animation.


    That is what the HTML above should do!

    Are you saying that it displays both the Flash and the image in your
    browser? If so, that is a browser bug. Which browser are you using? I'd
    like to see this!

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?id=132
    Toby A Inkster, Oct 27, 2003
    #4
  5. steve wrote:

    > But if the browser have flash plug in it displaying both the flash
    > movie and the gif animation.
    > How can I make it to display only flash in that case?


    Get Microsoft to fix your browser.
    Leif K-Brooks, Oct 27, 2003
    #5
  6. steve

    steve Guest

    > >> steve wrote:
    > >>
    > >>> can I put some script to check the browser plug in and if the

    browser
    > >>> have plug in flash to display the flash
    > >>> and if the browser do not have flash to display the gif image.
    > >>> How do I achieve that if it is possible
    > >>
    > >> <object type="application/x-shockwave-flash" data="flash.swf"
    > >> height="100" width="150">
    > >> <img type="image/gif" src="mypicture.gif" height="80"

    width="20"
    > >> alt="Alternative text">
    > >> </object>

    > >
    > > It work fine if the browser do not have flash plug in.
    > > But if the browser have flash plug in it displaying both the flash
    > > movie and the gif animation.

    >
    > That is what the HTML above should do!
    >
    > Are you saying that it displays both the Flash and the image in your
    > browser? If so, that is a browser bug. Which browser are you using?

    I'd
    > like to see this!


    Yes
    It is Internet Explorer 6 (with SP1)
    steve, Oct 28, 2003
    #6
  7. steve

    Mark Parnell Guest

    Sometime around Tue, 28 Oct 2003 03:05:44 +0200, steve is reported to have
    stated:

    >> Are you saying that it displays both the Flash and the image in your
    >> browser? If so, that is a browser bug. Which browser are you using?

    > I'd
    >> like to see this!

    >
    > Yes
    > It is Internet Explorer 6 (with SP1)


    Could you post a URL?

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
    Mark Parnell, Oct 28, 2003
    #7
  8. steve

    steve Guest

    > >> Are you saying that it displays both the Flash and the image in
    your
    > >> browser? If so, that is a browser bug. Which browser are you

    using?
    > > I'd
    > >> like to see this!

    > >
    > > Yes
    > > It is Internet Explorer 6 (with SP1)

    >
    > Could you post a URL?


    I have not upload it at
    but if you want me to I will

    this code work only if the machine do not have flash install
    and than it display the image
    but if the machine have flash
    than the page just can not open

    <object type="application/x-shockwave-flash" data="testflash.swf"
    height="100" width="150">
    <img type="image/gif" src="testgif.gif" height="80" width="20"
    alt="Alternative text">
    </object>
    ---------------------------------------


    this code work fine with machine with flash and machine with out flash
    but I'm not sure it is the right way

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    width="430" height="28">
    <param name="movie" value="testflash.swf">
    <img type="image/gif" src="testgif.gif" height="80" width="80"
    alt="Alternative text">
    </object>
    -------------------------------------
    steve, Oct 28, 2003
    #8
  9. steve wrote:

    > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > width="430" height="28">
    > <param name="movie" value="testflash.swf">
    > <img type="image/gif" src="testgif.gif" height="80" width="80"
    > alt="Alternative text">
    > </object>


    It probably wouldn't display the Flash file in Netscape (except 7.1), nor
    in any version of Opera, nor any Mac browser(?) even if the Flash plugin
    was installed.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?id=132
    Toby A Inkster, Oct 29, 2003
    #9
  10. steve

    steve Guest

    > steve wrote:
    >
    > > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > > width="430" height="28">
    > > <param name="movie" value="testflash.swf">
    > > <img type="image/gif" src="testgif.gif" height="80" width="80"
    > > alt="Alternative text">
    > > </object>

    >
    > It probably wouldn't display the Flash file in Netscape (except

    7.1), nor
    > in any version of Opera, nor any Mac browser(?) even if the Flash

    plugin
    > was installed.


    So which one is the correct way to do it?
    steve, Oct 29, 2003
    #10
  11. steve

    Steve Pugh Guest

    "steve" <> wrote:

    >So which one is the correct way to do it?


    I can't believe no one's pointed you at this article yet:

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

    Read it carefully all the way through.

    My own tests concur with the authors of that article. The best way to
    include a Flash movie for modern browsers is:

    <object type="application/x-shockwave-flash" data="testflash.swf"
    height="100" width="150">
    <param name="movie" value="testflash.swf">
    <img type="image/gif" src="testgif.gif" height="80" width="80"
    alt="Alternative text">
    </object>

    This works in IE, Mozilla, Opera, etc. Only old browsers like Netscape
    4 won't be able to see the Flash movie.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
    Steve Pugh, Oct 29, 2003
    #11
  12. steve

    steve Guest

    > I can't believe no one's pointed you at this article yet:
    >
    > http://www.alistapart.com/articles/flashsatay/
    >
    > Read it carefully all the way through.
    >
    > My own tests concur with the authors of that article. The best way

    to
    > include a Flash movie for modern browsers is:
    >
    > <object type="application/x-shockwave-flash" data="testflash.swf"
    > height="100" width="150">
    > <param name="movie" value="testflash.swf">
    > <img type="image/gif" src="testgif.gif" height="80" width="80"
    > alt="Alternative text">
    > </object>
    >
    > This works in IE, Mozilla, Opera, etc. Only old browsers like

    Netscape
    > 4 won't be able to see the Flash movie.


    That it is.

    Thanks
    steve, Oct 29, 2003
    #12
    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. Davisro
    Replies:
    1
    Views:
    678
    Michael D. Ober
    Jun 14, 2004
  2. mit
    Replies:
    1
    Views:
    772
    Ramu Pulipati
    Jan 25, 2006
  3. kris
    Replies:
    0
    Views:
    497
  4. kris
    Replies:
    0
    Views:
    457
  5. kris
    Replies:
    1
    Views:
    5,157
Loading...

Share This Page