下面是该网站的代码。你参考着来修改吧:
<div class="top_logo"><a href="javascript:void(0)" title="把2345网址导航设为主页" target="_self" onClick="if(T.browser.ie === '6.0'){window.open('http://bbs.2345.cn/thread.php?fid=1&pid=2678844')return false}T.setHomePage(this,'http://www.2345.com/?t=2345')clickCount('homepage1')return(false)"><img src="http://www.2345.com/i/blank.png" width="10" height="10" id="websiteLogo"></a><span class="tipSet_ie6" id="J_tipSet_ie6" style="display:none" onMouseOver="this.className='tipSet_ie6_hov'" onMouseOut="this.className='tipSet_ie6'"></span><em class="close_tip_ie6" onClick="localStorage.setItem('__tipSet_ie6__','1')$('J_tipSet_ie6').style.display='none'" title="关闭"></em></div>
下面的代码放到页面的底部:
<span style="display:none"><script src="http://union2.50bang.org/js/2345"></script><script>(function(doc) {var div = $('corner_div'), appendImg = false, doSth = function (){ var d = doc.documentElement, w = window.innerWidth || (d &&d.clientWidth ) || doc.body.clientWidth if ( w <($CONFIG['wideScreen'] ? 1202 : 998 ) + 200 ){ div.style.display = 'none' }else{ if (!appendImg) { if (isIE6) { $('J_cor_bg').style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'images/corner_0108.png\',sizingMethod=\'crop\')' }else{ $('J_cor_bg').style.background = 'url(images/corner_0108.png) no-repeat' } appendImg = true} div.style.display = 'block' } } //doSth() //T.addEvent(window,'resize',function(){T.throttle(doSth)})}(document))if ($CONFIG['wideScreen']) {document.write('<scri'+'pt src = "http://union2.50bang.org/js/width"></scri'+'pt>')}try{ if (window.external.RCCoralOnlineFavPage('productVersion')) {var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://")document.write(unescape("%3Cspan id='cnzz_stat_icon_1000110207'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "w.cnzz.com/q_stat.php%3Fid%3D1000110207' type='text/javascript'%3E%3C/script%3E")) }}catch(e){} //ie6升级提示(function(doc,b) { var date = new Date($CONFIG['time']) , ls = localStorage.getItem('toptip_ie6') , div if (b.ie !== '6.0' || b.isShell || ls === '1' || date.getTime() <parseInt(ls)) {return} localStorage.setItem('toptip_ie6',date.setHours(23, 59, 59)) div = document.createElement('DIV'), firstChildren = document.body.children[0] div.className = 'stopie6' div.innerHTML = '<div class="inner"><span class="st_left"><ins class="icon"></ins><a href="http://digi.it.sohu.com/20131115/n390199230.shtml">微软即将停止IE6更新</a>,为保证安全上网,请立即将浏览器升级为<a href="http://ie.2345.com/?2345" class="link">2345智能浏览器</a>!</span><a target="_self" href="http://download.2345.com/down/2345Explorer_100220.exe" class="btn_browse">立即更新</a><a id="J_ie6_close" href="javascript:" target="_self" class="st_close" title="关闭"></a></div>' firstChildren.parentNode.insertBefore(div, firstChildren) $('J_ie6_close').onclick = function() { localStorage.setItem('toptip_ie6','1') doc.body.removeChild(div) event.returnValue = false }} (document,T.browser))</script></span>
祝你成功!
asp改成html不是升级。。。另在seo方面会有负面影响。因为原来的asp连接都变得不可用了。可能会被版定为死链接。。。
html比asp唯一的好处就是,html可以同时自持N多人在线。
而asp站链接人数达到1000时或者页面太多时。由于数据库调用关系。
会导致变慢,卡,或者崩溃。。。
如果你们站流量能够日5000IP的话,可以考虑换成html
伪静态没什么用,该卡的还是会卡。
想找人SEO可以百度HI我留联系方式。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)