Fork me on GitHub

Flash detect - Not happening with Firefox 3  Bottom

  • I have a routine that detects if a user has flash installed and displays the approperate logo. The routine works with IE but not with Firefox.

    If someone can spot something here that is broken would be greatly appreciated. Also, maybe there is a better routine for detecting and displaying the flash header?

    TIA...

    Code

    <!-- Begin Flash Detection (Flashplayer 6) -->

    <!--
    // In this section we set up the content to be placed dynamically on the page.
    // Customize movie tags and alternate html content below.

    if (!useRedirect) {    // if dynamic embedding is turned on
      if(hasRightVersion) {  // if we've detected an acceptable version
        var oeTags = '
    <td rowspan="2">'
        + '
    '
        + '
    <PARAM name="MOVIE" value="<!--[$imagepath]-->/logo.swf">'
        + '
    <PARAM name="PLAY" value="true">'
        + '
    <PARAM name="LOOP" value="false">'
        + '
    <PARAM name="QUALITY" value="high">'
        + '
    <PARAM name="MENU" value="false">'
        + '
    <EMBED SRC="<!--[$imagepath]-->/logo.swf"'
        + '
    WIDTH="593" HEIGHT="124"'
        + '
    PLAY="true"'
        + '
    loop="false"'
        + '
    QUALITY="high"'
        + '
    MENU="false"'
        + '
    TYPE="application/x-shockwave-flash"'
        + '
    PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
        + '
    </EMBED>'
        + '
    </td>';

        document.write(oeTags);   // embed the flash movie
      } else {  // flash is too old or we can'
    t detect the plugin
        // NOTE: height, width are required!
        var alternateContent = '<td rowspan="2"><IMG SRC="<!--[$imagepath]-->/wvLogoArea.jpg" HEIGHT="124" WIDTH="593"></td>' ;
         

        document.write(alternateContent);  // insert non-flash content
      }
    }
    // -->

    <NOSCRIPT>
              <td rowspan="2"><img src="<!--[$imagepath]-->/wvLogoArea.jpg"  alt=""></td>
    </NOSCRIPT>
    <!-- End Flash Detection -->




    edited by: mesteele101, Jan 01, 2009 - 06:15 AM
  • seems like the script include a broke table. There are only td tags.

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • Seems that there's a missing piece of code of where is set the 'hasRightVersion' variable.
    The script used may have a problem, there's a swfobject.js script that does a good job,made a search for a better script if that one is not working right icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Ok, Thanks. I'll have a look see.



    edited by: mesteele101, Jan 03, 2009 - 01:36 AM

This list is based on users active over the last 60 minutes.