Adding Google Chrome Framework for IE<9

This commit is contained in:
Pablo Luna
2011-03-13 16:24:26 +00:00
parent 331652ad74
commit 1b04d1effc
6 changed files with 60 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
</head>
<body>
<div style="width:100%; font-size:130%;">
you need to install Google Chrome Frame.
<br/>
<div id="div"> click here</div>
</div>
<div id="prompt">
<!-- if IE without GCF, prompt goes here -->
</div>
<script>
// The conditional ensures that this code will only execute in IE,
// Therefore we can use the IE-specific attachEvent without worry
$(document).ready(function(){
$("#div").click(function(event){
$(".chromeFrameOverlayContent").css("display","block");
$(".chromeFrameOverlayUnderlay").css("display","block");
});
});
window.attachEvent("onload", function() {
CFInstall.check({
mode: "overlay" // the default
});
});
</script>
</body>
</html>

View File

@@ -12,6 +12,10 @@
</c:url>
<html>
<head>
<!--[if lt IE 9]>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<![endif]-->
<!-- Internet Explorer 8 Hack -->
<meta http-equiv="Content-type" value="text/html;charset=UTF-8">
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>