bannerUrl =null;document.writeln(""); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
    "); document.writeln("
  1. "); document.writeln("
  2. "); document.writeln("
  3. "); document.writeln("
  4. "); document.writeln("
  5. "); document.writeln("
  6. "); document.writeln("
  7. "); document.writeln("
  8. "); document.writeln("
  9. "); document.writeln("
  10. "); document.writeln("
  11. "); document.writeln("
  12. "); document.writeln("
  13. "); document.writeln("
  14. "); document.writeln("
  15. "); document.writeln("
  16. "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); var banInt = setInterval(function(){ var imgH = document.querySelectorAll('#banner ul li img')[0].height; if(imgH!=0){ document.querySelector('#banner').style.height=(imgH*1.0+95)+'px'; clearInterval(banInt); } },800); (function () { if (!Function.prototype.bind) { Function.prototype.bind = function (obj) { var owner = this , args = Array.prototype.slice.call(arguments) , callobj = Array.prototype.shift.call(args); return function (e) { e = e || top.window.event || window.event; owner.apply(callobj, args.concat([e])); }; }; } })(); (function(doc){ var oParent=doc.getElementById('banner'); var oCut=oParent.getElementsByTagName('ul')[0]; var aCut=oCut.getElementsByTagName('li'); var oBtn=oParent.getElementsByTagName('ol')[0]; var aBtn=oBtn.getElementsByTagName('li'); var iLen=aCut.length; var iW=aBtn[0].offsetWidth; var allW=oBtn.parentNode.offsetWidth; var clientNum=Math.ceil(allW/iW); var now=0; var timer=null; var autoInterval=5000; var oPrev=oParent.getElementsByTagName('span')[0]; var oNext=oParent.getElementsByTagName('span')[1]; for(var i=0;iclientNum){ if(now>=iLen){ oBtn.style.left=-iW*(iLen-clientNum)+'px'; }else if(now>=clientNum-1){ oBtn.style.left=-iW*(now-(clientNum-1)+1)+'px'; }else{ oBtn.style.left=0; } } } oPrev.onclick=function(){ now--; if(now<0){ now=iLen-1; } tab(now); }; function next(){ now++; now%=iLen; tab(now); } oNext.onclick=next; function preventSelect(){ return false; } oNext.onselectstart=oPrev.onselectstart=preventSelect; function autoPlay(){ timer=setInterval(next,autoInterval); } autoPlay(); function stopAutoPlay(){ clearInterval(timer); } oParent.onmouseover=stopAutoPlay; oParent.onmouseout=autoPlay; })(document);