日期:2014-05-16 浏览次数:20444 次
if (window.ActiveXObject) {
var ua = navigator.userAgent.toLowerCase();
var ie=ua.match(/msie ([\d.]+)/)[1]
if(ie==6.0){
$("#news").hide();
}
}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<div id="news">
<div class="news_title">
<span>消息通知</span>
<a href="#" id="news_close"><img src="img/ts_close.gif" /></a>
</div>
<div class="news_main">
<h3>您有凤凰读书币已到帐成功</h3>
<ul>
<li>神将三国(晋级任务第1步)<span>75凤凰读书币</span>已到帐。</li>
<li>神将三国(晋级任务第1步)<span>75凤凰读书币</span>已到帐。</li>
</ul>
<p><a href="#">查看</a></p>
</div>
</div>
2秒后隐藏
<script>
setTimeout(function(){
if( $.browser.msie && $.browser.version==6) $('#news').hide()
},2000)
</script>