﻿
	document.ns = navigator.appName == "Microsoft Internet Explorer"
	function randomStr(str){
		var showId=Math.floor(Math.random()*2);
		var tempStr=str[showId];
		str[showId]=str[0];
		str[0]=tempStr;
	}
	function showStr(str,textWidth,num){
		if(!document.ns){document.write(str[0]+'<br>')}
		else{
			document.write('<table border=0 vAlign=bottom align="center" height="110" cellspacing=0 cellpadding=0 onMouseOver="scrollPause();" onMouseOut="scrollPlay();">'
			+'<tr><td>'
			+'<div id="icefable1'+num+'">'
			+'<table width=458 border=0 cellspacing=0 cellpadding=0 vAlign=bottom>'
			+'<tr><td height=86 valign=bottom>'+str[0]+'</td></tr>'
			+'<tr><td height=86 valign=bottom>'+str[1]+'</td></tr>'
							+'</table>'
			+'</div>'
			+'<div id="icefable2'+num+'" style="position:absolute;z-index:1;visibility:hidden"></div>'
			+'</td></tr>'
			+'</table>');
		}
	}
	function init_srolltext(num){
	countnum=0
	marqueesHeight=110;  //显示行数 * 20， 显示 3 行就是 60
	eval('stopscroll'+num+'=false;')
	eval('icefable1'+num+'.scrollTop=0;')
	rotatenum=0
	eval('icefable1'+num+'.style.width=0;')
	eval('icefable1'+num+'.style.height=marqueesHeight;')
	eval('icefable1'+num+'.style.overflowX="visible";')
	eval('icefable1'+num+'.style.overflowY="hidden";')
	eval('icefable1'+num+'.noWrap=true;')
	eval('icefable1'+num+'.onmouseover=new Function("stopscroll=true");')
	eval('icefable1'+num+'.onmouseout=new Function("stopscroll=false");')
	eval('preTop'+num+'=0; ')
	eval('currentTop'+num+'=0;')
	eval('stoptime'+num+'=0;')
	eval('icefable2'+num+'.innerHTML="";')
	eval('icefable2'+num+'.innerHTML+=icefable1'+num+'.innerHTML;')  
	eval('icefable1'+num+'.innerHTML=icefable2'+num+'.innerHTML+icefable2'+num+'.innerHTML;')  
	eval('setInterval("scrollUp'+num+'()",1);') 
	}
	var i = 1;
	var isPause = false;
	
	function scrollUp1(){
	  if (i > 200) {
		  if(isPause==true) return;
		  currentTop1+=1;
		  if(currentTop1==110){	//滚动行数 * 20， 一次滚上去 3 行就是 60
				stoptime1+=1;
				currentTop1-=1;
				if(stoptime1==220){  //总行数 * 20， 一共 9 行就是 180
					currentTop1=0;
					stoptime1=0;
				}
		  }else{
			  preTop1=icefable11.scrollTop;
			  icefable11.scrollTop+=1;
			  if(icefable11.scrollTop==220){ //总行数 * 20， 一共 9 行就是 180
				preTop1=0; currentTop1=0; stoptime1=0;icefable11.scrollTop=0
			  }
		  } 
		  // 注一: 20 是现在你们网站样式定的每行高度，如果行高有变化这个积数也要跟着变。
		  // 注二: 如果改成每行滚 3 行，那最好总行数是 3 的倍数，如果不是只能添加空行，我现在就加了一行空行改成 9 行
	  } else {
		i ++;
	  }
	}
	
	function scrollPause(){
		isPause = true;
	}
	
	function scrollPlay() {
		isPause = false;
	}
	
function gundong_newcard()
{
 document.ns = navigator.appName == "Microsoft Internet Explorer"
  var strArray1=new Array();
strArray1[0]='<iframe frameborder=0 width="458" height="110" marginheight=0 marginwidth=0 scrolling=no src="/ICBC/%e7%89%a1%e4%b8%b9%e5%8d%a1/gundong1.htm"></iframe>'
strArray1[1]='<iframe frameborder=0 width="458" height="110" marginheight=0 marginwidth=0 scrolling=no src="/ICBC/%e7%89%a1%e4%b8%b9%e5%8d%a1/gundong2.htm"></iframe>'
 //randomStr(strArray1);
showStr(strArray1,140,1);
init_srolltext(1);
}


