
Scrolling = function(preid,interval,height,cnt)
{
	this.preid = preid;
	this.speed = 1;				//¼Óµµ px
	this.height = height;		//ÇÑ¹ø¿¡ ½ºÅ©·Ñ¸µ µÉ px
	this.cnt = cnt;				//1set °¹¼ö
	this.interval = interval;	//¿òÁ÷ÀÓ interval
	this.iswait = false;
	this.htmltxt = eval(preid+"Text");
	this.div = document.getElementById(this.preid);
	this.div.innerHTML = '<div id="'+this.preid+'_scroll" style="position:absolute;top:0;">'+this.htmltxt+this.htmltxt+'<\/div>';
	this.div_scroll = document.getElementById(this.preid+"_scroll");
	this.tmp = 0; this.ncnt=1;
	this.div.onmouseover=function(){ this.isover=true; }
	this.div.onmouseout=function(){	this.isover=false; }
	var self=this;
	window.setTimeout(function(){self.play()}, interval);
}
Scrolling.prototype.play = function() {
    var self=this;
    if(!self.div.isover) {
        var top = parseInt(self.div_scroll.style.top);
        this.div_scroll.style.top=top-self.speed+"px";
        if(self.tmp++ > self.height-1)
        {
            if(self.ncnt++ == self.cnt) { this.div_scroll.style.top=0; self.ncnt=1;} //¿øÀ§Ä¡
            self.tmp=0;
            window.setTimeout(function(){self.play()}, this.interval);
            return;
        }
    } 
    window.setTimeout(function(){self.play()},1);
};
var scrollWeatherText="<a href=\"http://weather.media.daum.net\">¼­¿ï/°æ±â <span>28¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_4.gif\" alt=\"Èå¸²\"><br /><a href=\"http://weather.media.daum.net\">ÃæºÏ <span>27¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_3.gif\" alt=\"±¸¸§ ¸¹À½\"><br /><a href=\"http://weather.media.daum.net\">Ãæ³² <span>26¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_3.gif\" alt=\"±¸¸§ ¸¹À½\"><br /><a href=\"http://weather.media.daum.net\">¿µµ¿ <span>25¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_2.gif\" alt=\"±¸¸§ Á¶±Ý\"><br /><a href=\"http://weather.media.daum.net\">¿ï¸ª/µ¶µµ <span>24¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_2.gif\" alt=\"±¸¸§ Á¶±Ý\"><br /><a href=\"http://weather.media.daum.net\">ÀüºÏ <span>27¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_3.gif\" alt=\"±¸¸§ ¸¹À½\"><br /><a href=\"http://weather.media.daum.net\">Àü³² <span>27¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_3.gif\" alt=\"±¸¸§ ¸¹À½\"><br /><a href=\"http://weather.media.daum.net\">Á¦ÁÖ <span>25¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_3.gif\" alt=\"±¸¸§ ¸¹À½\"><br /><a href=\"http://weather.media.daum.net\">°æºÏ <span>28¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_3.gif\" alt=\"±¸¸§ ¸¹À½\"><br /><a href=\"http://weather.media.daum.net\">°æ³² <span>27¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_2.gif\" alt=\"±¸¸§ Á¶±Ý\"><br /><a href=\"http://weather.media.daum.net\">¼­ÇØ5µµ <span>22¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_40.gif\" alt=\"¾È°³\"><br /><a href=\"http://weather.media.daum.net\">¿µ¼­ <span>26¡ÆC<\/span><\/a> <img src=\"http://img-media.daum-img.net/15/weather/icon/s_2.gif\" alt=\"±¸¸§ Á¶±Ý\"><br />";

var wstr='<div id="WTS_media" title="¼­¿ï/°æ±â 28 ¡ÆC \nÃæºÏ 27 ¡ÆC \nÃæ³² 26 ¡ÆC \n¿µµ¿ 25 ¡ÆC \n¿ï¸ª/µ¶µµ 24 ¡ÆC \nÀüºÏ 27 ¡ÆC \nÀü³² 27 ¡ÆC \nÁ¦ÁÖ 25 ¡ÆC \n°æºÏ 28 ¡ÆC \n°æ³² 27 ¡ÆC \n¼­ÇØ5µµ 22 ¡ÆC \n¿µ¼­ 26 ¡ÆC \n">';
wstr+='<div class="L">7.20 (¿ù) <span>|<\/span> <\/div>';
wstr+='<div class="R" id="scrollWeather"><\/div>';
wstr+='<\/div>';
document.getElementById('WTS').innerHTML = wstr;
new Scrolling("scrollWeather",2100,24,12);


<!--Generated by Daum-Section-Template-->
