Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Flash detection on Safari ?

    codice:
    <script src="FlashDetect/AC_OETags.js" language="javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    // -----------------------------------------------------------------------------
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 8;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Minor version of Flash required
    var requiredRevision = 0;
    // -----------------------------------------------------------------------------
    // -->
    </script>
    </HEAD>
    
    <BODY text=#CCCCCC vLink=#CCCCCC aLink=#CCCCCC link=#CCCCCC
    leftMargin=0 topMargin=0 scroll=no marginheight="0" marginwidth="0">
    <script language="JavaScript" type="text/javascript">
    <!--
    // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
    var hasProductInstall = DetectFlashVer(6, 0, 65);
    
    // Version check based upon the values defined in globals
    var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    
    
    // Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
    if ( hasProductInstall && !hasReqestedVersion ) {
    	// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
    	// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
    	// DO NOT MODIFY THE FOLLOWING FOUR LINES
    	// Location visited after installation is complete if installation is required
    	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
    	var MMredirectURL = window.location;
    	document.title = document.title.slice(0, 47) + " - Flash Player Installation";
    	var MMdoctitle = document.title;
    
    	AC_FL_RunContent(
    		"src", "FlashDetect/playerProductInstall",
    		"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
    		"width", "550",
    		"height", "300",
    		"align", "middle",
    		"id", "detectionExample",
    		"quality", "high",
    		"bgcolor", "#3A6EA5",
    		"name", "detectionExample",
    		"allowScriptAccess","sameDomain",
    		"type", "application/x-shockwave-flash",
    		"pluginspage", "http://www.adobe.com/go/getflashplayer"
    	);
    } else if (hasReqestedVersion) {
    	// if we've detected an acceptable version
    	// embed the Flash Content SWF when all tests are passed
    	var ind = '<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0>'
      +'<TBODY>'
      +'<TR> '
      +'  <TD '
      +' style="FONT-SIZE: 10px; FONT-FAMILY: Verdana; TEXT-DECORATION: none; font-color: #CCCCCC" '
      +' vAlign=center align=middle>'
      +'  <TABLE height=155 cellSpacing=0 cellPadding=0 width="100%" align=center '
      +'    border=0 bgcolor="#CCCCCC">'
      +'     <TBODY> '
      +'      <TR> '
      +'       <TD '
      +'       background="sfondo/sfondo.gif" bgcolor="#CCCCCC"></TD>'
      +'            <TD width=615 height=155><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="620" height="220">'
      +'              <param name="movie" value="home.swf">'
      +'             <param name=quality value=high>'
      +'             <embed src="home.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="620" height="220"></embed>'
      +'           </object></TD>'
      +'           <TD '
      +'       background="sfondo/sfondo.gif" bgcolor="#CCCCCC"></TD>'
      +'     </TR>'
      +'      </TBODY>'
      +'   </TABLE>';
    	document.write(ind);
    } else {  // flash is too old or we can't detect the plugin
    	var alternateContent = '<blockquote>'
    + '<h3><font color="#000000" face="Arial, Helvetica, sans-serif" style="background-color:#999999;">Non hai l\'ultima versione di Adobe Flash Player.</font></h3>'
    + '<font face=\"Arial, Helvetica, sans-serif\">'
    + '<table width="60%">'
    + '  <tr>'
    + '    <td colspan="2">'
    + '      
    
    '
    + '      <font color="#000000" size="2" style="background-color:#999999;">Questo sito richiedeAdobe<sup><font size="-1">&reg;</font></sup>Flash<sup><font size="-2">TM</font></sup>software.
    Flash Player non è installato su questo computer oppure la versione attualmente installata è vecchia.</font>'
    + '    </td>'
    + '  </tr>'
    + '  <tr>'
    + '    <td>'
    + '      [img]FlashDetect/get_flash_player.gif[/img]'
    + '    </td>'
    + '    <td>'
    + '      
    
    '
    + '      <font color="#000000" size="2" style="background-color:#999999;">Perchè non scarichi subito e installi l\'ultima versione ora? 
    Ci vorrà giusto qualche minuto.</font>'
    + '    </td>'
    + '  </tr>'
    + '</table>'
    + '</font>'
    + '
    
    '
    + '<font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" SIZE="1" style="background-color:#999999;">Macromedia and Flash are trademarks of Adobe Systems, Inc.</font>'
    + '</blockquote>';
    	document.write(alternateContent);  // insert non-flash content
    }
    // -->
    </script>
    Non visualizza l'object flash...
    come mai non funziona in safari ???

    please HELP!!!

  2. #2
    è il codice del flash detection kit di Adobe, anche se dichiarato che funziona anche con Safari in realtà a me non funziona, qualcuno sa come mai? c'è bisogno di qualche altro script per far funzionare il flash detect anche su Mac???

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.