Google Chrome Frame คือคำตอบที่ดีที่สุดในตอนนี้
มันคืออะไร ?
--- มันคือเทคโนโลยีของ Google ที่นำ Chrome มาแสดงผลใน Internet Explorer ! โดยการให้ผู้ใช้ที่ลงปลั๊กอิน ง่ายๆ (ในเมื่อผู้ใช้ไม่ยอมเปลี่ยนบาวเซอร์ เหตุเพราะความเคยชิน, กลัวข้อมูลเก่าประวัติเก่าในการท่องเวปจะหาย อะไรพวกนี้)
ข้อดี (ที่เทสมา)
- แสดงผลเหมือน Chrome
- Animation ได้นิ่มนวลมากๆ เหมือนเดิม (ในกรณีที่เล่น Animation ในเวป ด้วย JS พวก jQuery อะไรก็แล้วแต่)
- ให้คนเข้าเวปติดตั้งง่ายมากๆ
- ลองรับ CSS3 พวก สี RGBa, radius, เงา, multi-backgrounds นู้นนี้นั้น
- Pixel ตรงตามมาตราฐาน
- เยอะ ! เอาเป็นว่ามันเหมือน Chrome เลย !
http://code.google.com/chrome/chromeframe/ วิธีติดตั้งลงในเวปคุณ
ใส่โค๊ดเหล่านี้ลงไปในที่ไหนก็ได้ใน ระหว่าง <body> </body>
<!--[if IE]>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<style>
.chromeFrameInstallDefaultStyle {
width: 800px; /* default is 800px */
border: 5px solid #333;
z-index:100;
position: absolute;
}
</style>
<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
window.attachEvent("onload", function() {
CFInstall.check({
mode: "inline", // the default
node: "prompt"
});
});
</script>
<![endif]-->
และตามด้วยโค๊ดนี้ ใส่ภายใน <head> </head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
ผมอยากให้เวปทุกเวปช่วยกันติดนะครับ ปัญหาปวดหัวสำหรับนักพัฒนาจะได้ลดลง
ปล. ในกรณีที่คุณไม่อยากติดโค๊ดให้คนลง google chrome frame ให้ติดแค่โค๊ดอันที่สองก็ยังดี สำหรับให้คนเข้าเวปที่ติด google chrome frame ใช้งานเวปคุณด้วยปลั๊กอินตัวนี้