/// À̹ÌÁö ¸Ê ÇÔ¼ö /// function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i' +'' +'' +'' +'' +''); } /// ÁغñÁß ¾ó·µÃ¢ ÇÔ¼ö /// function message(){ alert("ÁغñÁßÀÔ´Ï´Ù."); } /// ÆË¾÷ ¶ç¿ì´Â ÇÔ¼ö /// function openwindow(theURL,winName,features) { window.open(theURL,winName,features); } /// ¼¿·ºÆ®¹Ú½º ¾ÈÀÇ ¸µÅ© ÁÖ¼Ò·Î »õâ ¶ç¿ì±â /// function gourl(url){ location.href(url); } /// ¼¿·ºÆ®¹Ú½º ¾ÈÀÇ ¸µÅ© ÁÖ¼Ò·Î »õâ ¶ç¿ì±â & go ¹öư ´­·¯¼­ ÀÛµ¿ /// function gourl1(selected_url){ if(selected_url){ window.open(selected_url); }else{ alert("°ü·Ã»çÀÌÆ®¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä."); } } /// ÆË¾÷ ¶ç¿ì´Â ÇÔ¼ö(¿À´Ã ÇÏ·ç ¿­Áö¾ÊÀ½) /// function getCookie( name ) { var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ){ var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ){ if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } return ""; } /// »õâ /// function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } /// ºÎ¸ðâ¿¡ ¿øÇÏ´Â ¸µÅ© ¿¬°á /// function linkToOpener(URL){ if (window.opener && !window.opener.closed) window.opener.location = URL; window.close(); } /// Text Ticker /// TextSlider = function(className) { document.write("
"); this.item = []; this.width = this.height = this.speed = this.pixel = this.interval = this.size = this.moveCount = this.X = this.Y = 0; this.direction = ""; this.pLayer = document.getElementById("TextSliderPLayer_"+ className); this.layer = document.getElementById("TextSliderLayer_"+ className); this.align = "left"; this.intervalId = null; this.className = className; this.isPause = false; } TextSlider.prototype.init = function() { with (this.pLayer.style) { width = this.width+"px"; height = this.height+"px"; overflow = "hidden"; position = "relative"; } with (this.layer.style) { width = this.direction=='up' || this.direction=='down' ? this.width+"px" : this.size*(this.item.length+1)+"px"; height = this.direction=='up' || this.direction=='down' ? this.size*(this.item.length+1)+"px" : this.height+"px"; top = 0; left = 0; position = "relative"; } for (var i=0; i"; if (this.direction=='up' || this.direction=='down') { __html += ""; for (var i in this.item) __html += ""; __html += "
"+this.item[i]+"
"; } else { __html += ""; for (var i in this.item) __html += ""; __html += "
"+this.item[i]+"
"; } __html += ""; this.layer.innerHTML = __html; this.start(); } TextSlider.prototype.start = function() { this.intervalId = setInterval(this.className+".move()", this.speed); } TextSlider.prototype.move = function() { if (this.isPause) return; switch (this.direction) { case "up": this.Y -= this.pixel; break; case "down": this.Y += this.pixel; break; case "left": this.X -= this.pixel; break; case "right": this.X += this.pixel; break; } if (this.direction=='up' || this.direction=='down') { if (Math.abs(this.Y)%this.size==0) this.stop(); this.layer.style.top = this.Y; } else { if (Math.abs(this.X)%this.size==0) this.stop(); this.layer.style.left = this.X; } } TextSlider.prototype.stop = function() { clearInterval(this.intervalId); switch (this.direction) { case "up": if (Math.abs(this.Y) >= parseInt(this.layer.style.height,10)-this.size) this.Y = this.layer.style.top = 0; break; case "down": if (Math.abs(this.Y) <= 0) this.Y = this.layer.style.top = -this.size*(this.item.length-1); break; case "left": if (Math.abs(this.X) >= parseInt(this.layer.style.width,10)-this.size) this.X = this.layer.style.left = 0; break; case "right": if (Math.abs(this.X) <= 0) this.X = this.layer.style.left = -this.size*(this.item.length-1); break; } setTimeout(this.className+".start()", this.interval); } TextSlider.prototype.unpause = function() {this.isPause = false;} TextSlider.prototype.pause = function() {this.isPause = true;} function set_url(c_url){ document.moreform.more_url.value = c_url; } function go_more(){ more_url = document.moreform.more_url.value; if(!more_url == "http://www.iansan.net/05_sub/body02.jsp?menuId=2" || !more_url == "http://www.iansan.net/06_sub/body06.jsp?menuId=8&subMenuId=81"){ location.href = document.moreform.more_url.value; }else{ window.open(more_url); } }