سؤال

I'm using this code to prevent users with IE6 from accessing the site.

http://code.google.com/p/ie6-upgrade-warning/

I'd like to give users the option to close the warning and continue to browse the site without upgrading their browser.

Is there a way to do this?

هل كانت مفيدة؟

المحلول

Use the banner from Microsoft: http://www.ie6countdown.com/join-us.aspx You can add a close button with this code:

<!--[if lt IE 7]> <div id="ie6banner" style='clear: both; height: 59px; padding:0 0 0 15px; position: relative;'> <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /></a><a onClick="document.getElementById('ie6banner').style.display = 'none'; this.style.display = 'none';"</div> <![endif]-->
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top