function roll(st,color) { idx=eval(st); idx.style.backgroundColor=color; } ///////// ÀÚµ¿¸µÅ© ///////////////////////////////////////////////////////////////////// function autolink( id ) { //alert(id); var container = document.getElementById(id); var doc = container.innerHTML; var regSRC = new RegExp("(src|href)=(\'|\")(http|https|ftp|telnet|news|irc)://([-/.a-zA-Z0-9_~#%$?&=:200-377();|°¡-ÆR]+)","gi"); var regURL = new RegExp("(http|https|ftp|telnet|news|irc)://([-/.a-zA-Z0-9_~#%$?&=:200-377();|°¡-ÆR]+)","gi"); var regEmail = new RegExp("([_a-z0-9]+[_a-z0-9+-]+@[a-z0-9+-]+\.[a-z0-9+-]+[\.a-z0-9+-]+)","gi"); doc = doc.replace(regSRC,"$1=$2donelink://$4"); doc = doc.replace(regURL,"$1://$2"); doc = doc.replace(regEmail,"$1"); container.innerHTML = doc.replace( /donelink/gi, 'http' ); } function alertID() { for(i = 0; i < document.all.length; i++) if( document.all[i].id != "" ) alert(document.all[i].id); } ///////////////////////// ÀÚµ¿¸µÅ© ////////////////////////////////////////////////////////// // setCookie function setCookie( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/;" } // getCookie function t_getCookie(name){ var arg = name + "="; var alen = arg.length; var clen=document.cookie.length; var i=0; while(i< clen){ var j = i+alen; if(document.cookie.substring(i,j)==arg){ var end = document.cookie.indexOf(";",j); if(end== -1) end = document.cookie.length; return unescape(document.cookie.substring(j,end)); } i=document.cookie.indexOf(" ",i)+1; if (i==0) break; } return null; } function t_setCookie(name,value,expires){ document.cookie=name + "=" + escape(value)+ ((expires == null)? "" : (" ; expires=" + expires.toGMTString())); } function t_setcookieVariables(){ var today = new Date(); var expires=new Date(); expires.setTime(today.getTime()+ 1000*60*60*24*365); setCookie("news_title","",expires) } function imgView(no,fld) { //alert('ÄíÄí'); browsing_window = window.open('index_pop.php?incf=product/imgView&fld='+fld+'&no='+no, 'browse_org', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=300, height=300'); browsing_window.focus(); return; } function orderOpen(ono,no){ var browzing=window.open('index_pop.php?incf=order/order_detail2&ono='+ono+'&no='+no, '' , 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=800,height=400'); browzing.focus(); return; } function zoomGd(zno) { browzing=window.open('index_pop.php?incf=books/img_view&zno='+zno, 'zoomGd', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=550, height=620'); browzing.focus(); return; } function vod_play(play_url, width, height) { var width_val = 320; var height_val = 310; if(width) width_val = width; if(height) height_val = height; str = "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" document.write(str); } function vod_play2(play_url, width, height) { var width_val = 320; var height_val = 310; if(width) width_val = width; if(height) height_val = height; str = "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" document.write(str); } function eScroll() { /********************************* * eScroll ( eNamoo scroll script ) * by mirrh * 2006.07.16 ********************************/ var thisObj = this; this.timeObj = null; /*** ¼³Á¤º¯¼ö ***/ this.mode = "top"; // ½ºÅ©·Ñ ¹æÇâ (top|left) this.width = "100%"; // ¶óÀÎ´ç °¡·Î°ª (pixel) this.height = 20; // ¶óÀÎ´ç ³ôÀÌ°ª (pixel) this.line = 1; // Ãâ·Â ¶óÀμö this.delay = 150; // ½ºÅ©·ÑÈÄ µô·¹ÀÌ ½Ã°£ this.speed = 1; // ½ºÅ©·Ñ ¼Óµµ (ÀÛÀ»¼ö·Ï ºü¸§) this.id = 'obj_eScroll'; // °´Ã¼ id (Ŭ·¡½º ´ÙÁß »ç¿ë½Ã id ´Ù¸£°Ô ÁöÁ¤ ¿ä¸Á) this.contents = new Array(); // Ãâ·Â ³»¿ë (¹è¿­·Î ³»¿ë ÁöÁ¤ ¿ä¸Á) this.align = "left"; // ³»¿ë aligne this.valign = "middle"; // ³»¿ë valigne /*** ³»À庯¼ö ***/ this.gap = 0; this.direction = 1; this.add = add; this.exec = exec; this.start = start; this.stop = stop; this.scroll = scroll; this.direct = direct; this.go = go; function add(str) { this.contents[this.contents.length] = str; } function exec() { this.basis = (this.mode == "left") ? this.width : this.height; var outWidth = this.width * ((this.mode == "left") ? this.line : 1); var outHeight = this.height * ((this.mode == "top") ? this.line : 1); var outline = "
"; document.write(outline); this.obj = document.getElementById(this.id); var tb = this.obj.appendChild(document.createElement("table")); var tbody = tb.appendChild(document.createElement("tbody")); tb.cellPadding = 0 ; tb.cellSpacing = 0 ; tb.onmouseover = function(){thisObj.stop()}; tb.onmouseout = function(){thisObj.start()}; if (this.mode=="left") var tr = tbody.appendChild(document.createElement("tr")); for (var k=0; k < this.contents.length; k++){ if (this.mode=="top") var tr = tbody.appendChild(document.createElement("tr")); var td = tr.appendChild(document.createElement("td")); td.noWrap = true; td.style.width = this.width; td.style.height = this.height; td.style.textAlign = this.align; td.style.verticalAlign = this.valign; td.innerHTML = this.contents[k]; } var len = (this.contents.length=this.delay) this.gap = 0; } if (!this.gap){ var ret = (out==this.tpoint) ? this.direction : out + this.direction; if (ret<0) ret = this.tpoint + ret; if (this.mode=="left") this.obj.scrollLeft = ret; else this.obj.scrollTop = ret; } } function start() { this.timeObj = window.setInterval("(document.getElementById('" + this.id + "')).parent.scroll()",this.speed); } function stop() { clearTimeout(this.timeObj); } function direct(d) { this.direction = d; } function go() { this.stop(); var out = (this.mode=="left") ? this.obj.scrollLeft : this.obj.scrollTop; var ret = (parseInt(out / this.basis) + this.direction) * this.basis; if (ret<0) ret = this.tpoint + ret; if (ret>this.tpoint) ret = this.basis; if (this.mode=="left") this.obj.scrollLeft = ret; else this.obj.scrollTop = ret; } }