私はグラフに Google ビジュアライゼーションを使用していますが、これは IE8 ではうまく表示されず、IE6 ではまったく機能しません。
Google Chrome フレームを追加しました。ユーザーがプラグインをインストールすると、Google ビジュアライゼーションは問題なく動作します。
IE ユーザーに GFC のインストールを強制する方法はありますか? 現在はオプションです。ドキュメントを読みましたが、GFCInstall.check() 関数呼び出しを使用してこれを構成する方法はないようです。
これが私の現在のコードです:
<!--[if IE]>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<style>
.chromeFrameInstallDefaultStyle {
border: 5px solid blue;
top:55%;
}
</style>
<script>
// The conditional ensures that this code will only execute in IE,
// Therefore we can use the IE-specific attachEvent without worry
window.attachEvent("onload", function() {
CFInstall.check({
mode: "inline"
});
});
</script>
<![endif]-->