// Copyright: pjtime.com
// Author: AdDelaer
// Useage: PjTimemarquee(滚动对象id, 可见范围宽度, 可见范围高度, 滚动版数,滚动速度, 停留时间, 方向); 方向有left和up两种
function PjTimemarquee(id,mw,mh,mr,ms,pause,dr){
	
	var obj=document.getElementById(id);
	obj.ss=false; //stop tag
	obj.mr=mr; //marquee rows
	obj.mw=mw; //marquee width
	obj.mh=mh; //marquee height
	obj.ms=ms; //marquee speed
	obj.pause=pause; //pause time
	obj.pt=0; //pre top
	obj.st=0; //stop time
	obj.dr=dr; //direction

	with(obj){
		style.width=mw+"px";
		style.height=mh+"px";
		noWrap=false;
		onmouseover=stopm;
		onmouseout=startm;
		scrollTop=0+"px";
		scrollLeft=0+"px";
	}
	
	if(obj.mr!=1){
		switch(obj.dr){
			case("up"):
				obj.tt=mh*mr;
				obj.ct=mh; //current top
				obj.innerHTML+=obj.innerHTML;
				setInterval(scrollUp,obj.ms); break;
			default://("left"):
				obj.tt=mw*mr;
				obj.ct=mw;
				obj.innerHTML='<div style="width:'+(obj.tt*2)+'px;"><div style="float:left;">'+obj.innerHTML+'</div><div style="float:right;">'+obj.innerHTML+'</div></div>';
				document.write('<style type="text/css">#'+id+' table{width:'+mw*mr+'px;} #'+id+' td{width:'+mw+'px;}</style>');
				setInterval(scrollLeft,obj.ms); break;
		}
	}

	function scrollUp(){
		if(obj.ss==true) return;
		obj.ct+=1;
		if(obj.ct==obj.mh+1){
			obj.st+=1; obj.ct-=1;
			if(obj.st==obj.pause){obj.ct=0; obj.st=0;}
		}else {
			obj.pt=(++obj.scrollTop);
			if(obj.pt==obj.tt){obj.scrollTop=0;}
		}
	}

	function scrollLeft(){
		if(obj.ss==true) return;
		obj.ct+=1;
		if(obj.ct==obj.mw+1){
			obj.st+=1; obj.ct-=1;
			if(obj.st==obj.pause){obj.ct=0; obj.st=0;}
		}else {
			obj.pt=(++obj.scrollLeft);
			if(obj.pt==obj.tt){obj.scrollLeft=0;}
		}
	}

	function stopm(){obj.ss=true;}
	function startm(){obj.ss=false;}
}



document.write("<div id=TjDealer style=overflow:hidden;>")
document.write("  <table width=245 align=center cellpadding=0 cellspacing=0>")
document.write("    <tr>")
document.write("      <td width=160 height=25><a href='http://Dealer.pjtime.com/beijing/10018/' target=_blank>北京海龙腾达</a></td>")
document.write("      <td width=80>010-82486942</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td width=160 height=25><a href='http://dealer.pjtime.com/beijing/12014/' target=_blank>北京海视天恒科技有限公司</a></td>")
document.write("      <td width=80>010-82116297</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td width=160 height=25><a href='http://Dealer.pjtime.com/beijing/11040/' target=_blank>北京华羿视讯科技有限公司</a></td>")
document.write("      <td width=80>010-82116297</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td width=160 height=25><a href='http://dealer.pjtime.com/shanghai/12751/' target=_blank>上海松宜科技发展有限公司</a></td>")
document.write("      <td width=80>13916263699</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td width=160 height=25><a href='http://Dealer.pjtime.com/beijing/9773/' target=_blank>北京博维新概念信息技术公司</a></td>")
document.write("      <td width=80>13366570162</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td height=25><a href='http://Dealer.pjtime.com/beijing/8957/' target=_blank>北京赫博时代科技有限公司</a></td>")
document.write("      <td>010-62633951</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td height=25><a href='http://brand.pjtime.com/FOUNDER/' target=_blank>北京方正蓝康信息技术公司</a></td>")
document.write("      <td>010-82343333</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td height=25><a href='http://www.sonypcs.cn/' target=_blank>上海国视科技</a>　021-33188548 </td>")
document.write("      <td>4006003548</td>")
document.write("    </tr>")
document.write("  </table>")
document.write("  <table width=245 align=center cellpadding=0 cellspacing=0>")
document.write("     <tr>")
document.write("       <td height=25><a href='http://dealer.pjtime.com/beijing/13586/' target=_blank>北京海天纵横科技</a></td>")
document.write("       <td>13811915342</td>")
document.write("     </tr>")
document.write("    <tr>")
document.write("       <td height=25><A href='http://brand.pjtime.com/mimio/' target='_blank'>上海派克笔有限公司</A></td>")
document.write("       <td>021-22085000</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td height=25><a href='http://Dealer.pjtime.com/beijing/8438/' target=_blank>北京双旗世纪科技有限公司</a></td>")
document.write("      <td>400-810-3999</td>")
document.write("    </tr>")

document.write("     <tr>")
document.write("       <td height=25><A href='http://Dealer.pjtime.com/guangdong/11456/' target='_blank'>友双国际有限公司</A></td>")
document.write("       <td>0755-82793070</td>")
document.write("     </tr>")
document.write("     <tr>")
document.write("       <td height=25><A href='http://Dealer.pjtime.com/beijing/hdpop/' target='_blank'>北京海纳众诚科技有限公司</A></td>")
document.write("       <td>13718617060</td>")
document.write("     </tr>")
document.write("     <tr>")
document.write("       <td height=25><A href='http://Dealer.pjtime.com/beijing/5694/' target='_blank'>兆科恒业电子技术有限公司</A></td>")
document.write("       <td>13910532236</td>")
document.write("     </tr>")
document.write("     <tr>")
document.write("       <td height=25><A href='http://brand.pjtime.com/guohua/' target='_blank'>北京国华创世科技有限公司</A></td>")
document.write("       <td>010-58476227</td>")
document.write("     </tr>")
document.write("     <tr>")
document.write("      <td height=25><a href='http://brand.pjtime.com/Vtron/' target=_blank>广东威创视讯科技股份公司</a></td>")
document.write("      <td>020-22213362</td>")
document.write("     </tr>")
document.write("  </table>")
document.write("  <table width=245 align=center cellpadding=0 cellspacing=0>")
document.write("    <tr>")
document.write("      <td height=25><a href=http://Dealer.pjtime.com/beijing/10143/ target=_blank>北京中电视讯科技有限公司</a></td>")
document.write("      <td>15810040181</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td width=160 height=25><a href='http://Dealer.pjtime.com/beijing/11723/' target=_blank>北京华影卓信科技有限公司</a></td>")
document.write("      <td width=80>13391760472</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td height=25><a href='http://www.super-view.com.cn/' target=_blank>北京睿联嘉业科技有限公司</a></td>")
document.write("      <td>400-650-8282</td>")
document.write("    </tr>")
document.write("    <tr>")
document.write("      <td height=25><a href='http://Dealer.pjtime.com/beijing/8075/' target=_blank>北京勤而进科技有限公司</a></td>")
document.write("      <td>010-62117490</td>")
document.write("    </tr>")
document.write("     <tr>")
document.write("       <td height=25><a href='http://Dealer.pjtime.com/beijing/12781/' target=_blank>深圳市海美迪北方办事处</a></td>")
document.write("       <td>15201185393</td>")
document.write("     </tr>")
document.write("    <tr>")
document.write("      <td height=25><a href='http://user.pjtime.com/icount.asp?id=220&url=http://www.pulanpu.com/home.asp' target=_blank>普兰普系统技术有限公司</a></td>")
document.write("      <td>010-82781916</td>")
document.write("    </tr>")
document.write("     <tr>")
document.write("       <td height=25><a href='http://www.xit168.com/' target=_blank>广州远润信息科技发展公司</a></td>")
document.write("       <td>020-86000717</td>")
document.write("     </tr>")
document.write("     </tr>")
document.write("     <tr>")
document.write("       <td height=25><a href='http://www.philips.monitors.com.cn/' target=_blank>飞利浦商用大屏显示器</a></td>")
document.write("       <td>400-8988-588</td>")
document.write("     </tr>")
document.write("  </table>")
document.write("</div>")

PjTimemarquee("TjDealer",245,200,3,10,300,"up");