05 2016 档案
摘要:var zhonghao={ //绑定事件 myAddEvent: function(obj, sEvent, fn){if(obj.attachEvent){obj.attachEvent('on'+sEvent, fn);}else{obj.addEventListener(sEvent, fn
阅读全文
摘要:<script>setTimeout(function(){ window.location.href="http://"+window.location.host;},5000);</script>
阅读全文
摘要:<script type="text/javascript"> function online(){ //商务通轨迹 var e = 'wap'; if(arguments.length == 1){ e = arguments[0]; } if(typeof openZoosUrl == 'und
阅读全文
摘要:js文字向上滚动代码<style>.pczt_pingfen_jhxs_news1{ width:397px; background:#edfafd; padding-top:2px; padding-bottom:2px; margin:0 auto;}.pczt_pingfen_jhxs_xia
阅读全文
摘要:<script>$(document).ready(function() { $("a").click(function(){ $(this).attr('href','javascript:void(0)'); getSwt('gzbdfyjy'); return false; });});</s
阅读全文
摘要:在所在的div要定义宽度,然后加入样式 text-overflow:-o-ellipsis-lastline; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:1;/*数字可以是1行、2
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or
阅读全文
摘要:<script>(function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol 'https') { b
阅读全文
摘要:var yunzhuanhua_pc_domain = "http://www.域名.com#yht"; //PC站网址var yunzhuanhua_wap_domain = "http://m.域名.com#yht"; //手机站网址document.writeln("<frameset col
阅读全文
摘要:// 8点到早上19点关var curr = new Date();var time = curr.getHours();if ( time >=0 && time <24 ){ document.write("<frameset cols=\"100%\">"); document.write("
阅读全文
摘要:1, js代码 function ntabs(thisObj,Num) {if(thisObj.className == "active")return; var tabObj = thisObj.parentNode.id; var tabList = document.getElementByI
阅读全文