
function MqObj(obj, width, height, speed, direct) {
	obj.contWidth = obj.offsetWidth;// offsetWidth
	obj.stopscroll = false;
	obj.nowscroll = 0;
	with (obj) {
		scrollLeft = 0;//
		innerHTML += innerHTML;
		style.width = width;
		style.height = height;
		style.overflowX = "hidden";//
		style.overflowY = "hidden";//
		noWrap = true;
		onmouseover = function () {
			stopscroll = true;
		};
		onmouseout = function () {
			stopscroll = false;
		};
	}
	eval("setInterval('doScroll(" + obj.id + ")'," + speed + ")");
}
function doScroll(obj) {
	if (obj.stopscroll == true) {
		return;
	}
	if (obj.nowscroll <= obj.contWidth) { // 
		obj.scrollLeft = obj.nowscroll++;//scrollLeft
	} else {
		obj.scrollLeft = 0;//scrollLeft
		obj.nowscroll = 0;
	}
}

