2012-05-04 9 views

答えて

1

プラグインのサポートとインストールされている場合は、毎秒1回確認するためにこの機能を使用できます。

function googleEarthErrors() { 
     if (google.earth.isSupported()) { 
      alert('Google Earth Plugin is supported for this browser'); 
     } else { 
      alert('Google Earth Plugin is NOT supported for this browser'); 
      return false; 
     } 
     if (google.earth.isInstalled()) { 
      alert('Google Earth Plugin is installed'); 
     } else { 
      alert('Google Earth Plugin is NOT installed'); 
      setTimeout('googleEarthErrors()', 1000); 
    } 

明らかにあなたがより便利に、より少ない迷惑な何か:)また

でアラートを交換したいと思うでしょう、あなたはこの答えをチェックアウトする必要があります - How to check for presence of the google earth plugin using JavaScript?