////////////////////// Ư¼ö¹®ÀÚ ÀÔ·ÂÁ¦ÇÑ (function($J) { $J.fn.alphanumeric=function(p) { p=$J.extend({ ichars: "!@#$J%^&*()+=[]\\\';,/{}|\":<>?~`.- ", nchars: "", allow: "" }, p); return this.each ( function() { if(p.nocaps) p.nchars+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; if(p.allcaps) p.nchars+="abcdefghijklmnopqrstuvwxyz"; s=p.allow.split(''); for(i=0; i= numFrames) { // First, see if we're done clearInterval(intervalId); // If so, stop calling ourselves if (whendone) whendone(element); // Invoke whendone function return; // And we're finished } for(var cssprop in animation) { try { element.style[cssprop] = animation[cssprop](frame, time); } catch(e) {} } frame++; // Increment the frame number time += timePerFrame; // Increment the elapsed time } } //////////////////////¾Ö´Ï¸ÞÀÌ¼Ç //////////////////////¿À¸¥Âʸ¶¿ì½º¹öư,Űº¸µå ÀÔ·Âµî ¹æÁö /* js_event_anti.js ¿À¸¥Âʸ¶¿ì½º¹öư,Űº¸µå ÀÔ·Âµî ¹æÁö this_s : ¿øÇÏ´Â ´ë»ó(ÆäÀÌÁö Àüü´Â window.document) e : event °´Ã¼ ex1> js_event_anti([°³Ã¼]);//ÆäÀÌÁö º¹»ç¹æÁö(¿À¸¥Âʸ¶¿ì½º,Űº¸µå, ÆË¾÷âÀ̶ó¸é ¿Ïº®!) (°³Ã¼À» ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é window.document°¡ ´ë»ó, ÆäÀÌÁö º¹»ç¹æÁö(¿À¸¥Âʸ¶¿ì½º,Űº¸µå, ÆË¾÷âÀ̶ó¸é ¿Ïº®!) ex2> [°³Ã¼].À̺¥Æ® = js_event_anti_stop_event; //°³Ã¼ÀÇ ÇØ´ç À̺¥Æ®µ¿ÀÛÀº ¹«½ÃµÈ´Ù mins01,mins,°ø´ë¿©ÀÚ MSN,NateOn : mins01(at)lycos.co.kr 2007-02-01 "°ø´ë¿©ÀÚ´Â ¿¹»Ú´Ù."¸¦ ³ªÅ¸³»¾ß¸¸ ¾µ ¼ö ÀÖ½À´Ï´Ù. */ //* function js_event_anti_right(e) { evt = e || event; try{ if (document.all){ if(evt.button == 2 || evt.button == 3) { alert('¿ìÃø¹öưÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.'); js_event_anti_stop_event(evt); return false; } }else { if(evt.which == 3 || evt.which == 2) { alert('¿ìÃø¹öưÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.'); js_event_anti_stop_event(evt); return false; } } }catch(ex){ return false; } } //==== Űº¸µå ÀÔ·Â ¸·±â function js_event_anti_processKey(e){ evt = e || event; alert('Űº¸µå¸¦ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.'); try{ js_event_anti_stop_event(evt); return false; }catch(ex){ return false; } } //==== À̺¥Æ® µ¿ÀÛ ¹«½Ã! function js_event_anti_stop_event(evt){ if(window.event){ window.event.keyCode = 0; window.event.cancelBubble = true; window.event.returnValue = true; }else{ evt.stopPropagation(); evt.preventDefault(); evt.initEvent; } return false; } //==== ±âº»¾ÈƼ À̺¥Æ® µî·Ï(¿À¸¥Âʸ¶¿ì½º,µå·¡±×,ŰÀÔ·Â) function js_event_anti(this_s){ //¹®Á¦Á¡ : FF¿¡¼­´Â µå·¡±× À̺¥Æ®¸¦ Á¦¾îÇÒ ¼ö ¾ø´Ù. if(!this_s){this_s = window.document;} if(document.attachEvent){ this_s.attachEvent("onkeydown", js_event_anti_processKey ); this_s.attachEvent("onmousedown", js_event_anti_right ); this_s.attachEvent("onselectstart", js_event_anti_stop_event ); this_s.attachEvent("ondragstart", js_event_anti_stop_event ); this_s.attachEvent("oncontextmenu", js_event_anti_stop_event ); } else{ window.captureEvents(Event.MOUSEDOWN); window.captureEvents(Event.ONKEYDOWN); this_s.addEventListener("keydown", js_event_anti_processKey , false); this_s.addEventListener("mousedown", js_event_anti_right , false); this_s.addEventListener("dragstart", js_event_anti_stop_event , false); //FF¿¡¼­ Áö¿øµÇÁö ¾Ê´Â´Ù. this_s.addEventListener("selectstart", js_event_anti_stop_event , false); //FF¿¡¼­ Áö¿øµÇÁö ¾Ê´Â´Ù. this_s.addEventListener("contextmenu", js_event_anti_stop_event , false); } } //////////////////////¿À¸¥Âʸ¶¿ì½º¹öư,Űº¸µå ÀÔ·Âµî ¹æÁö //////////////////////URL¿¡¼­ º¯¼ö¸¦ ÃßÃâ //GetUrlVars.js function Gurls() { var args = new Object(); var query = location.search.substring(1); // Get query string var pairs = query.split("&"); // Break at ampersand for(var i = 0; i < pairs.length; i++) { var pos = pairs[i].indexOf('='); // Look for "name=value" if (pos == -1) continue; // If not found, skip var argname = pairs[i].substring(0,pos); // Extract the name var value = pairs[i].substring(pos+1); // Extract the value value = decodeURIComponent(value); // Decode it, if needed args[argname] = value; // Store as a property } return args; // Return the object } //////////////////////URL¿¡¼­ º¯¼ö¸¦ ÃßÃâ //////////////////////input value ÀÚµ¿ÀÔ·Â function JqSelect(a,b) {//a: input name , b: ÁöÁ¤ °ª if(!(o = document.getElementById(a))) { name = document.getElementsByName(a); o = name[0]; } if(o!=null && a != '') { switch (o.type) { case 'checkbox' : case 'radio' : $J("input[name="+a+"]").filter('input[value='+b+']').attr("checked", "true"); break; case 'select-one' : $J("select[name="+a+"] option[value="+b+"]").attr("selected", "true"); break; case 'textarea' : $J("input[name="+a+"]").attr("value", b); break; case 'text' : case 'hidden' : case 'password' : } } } /* JqSelect('sel_val','A3'); JqSelect('chnm[]','a2'); JqSelect('chnm[]','a3'); JqSelect('chnm1','a3'); JqSelect('inkk','a2qqq'); */ //////////////////////input value ÀÚµ¿ÀÔ·Â //////////////////////½ºÅ¸ÀÏÇÁ·ÎÆÛƼ¾Ë¾Æ³»±â // Get a style property (name) of a specific element (elem) function getStyle( elem, name ) { // If the property exists in style[], then it¡¯s been set recently (and is current) if (elem.style[name]) return elem.style[name]; // Otherwise, try to use IE¡¯s method else if (elem.currentStyle) return elem.currentStyle[name]; // Or the W3C¡¯s method, if it exists else if (document.defaultView && document.defaultView.getComputedStyle) { // It uses the traditional text-align style of rule writing, instead of textAlign name = name.replace(/([A-Z])/g,"-$1"); name = name.toLowerCase(); // Get the style object and get the value of the property (if it exists) var s = document.defaultView.getComputedStyle(elem,""); return s && s.getPropertyValue(name); // Otherwise, we¡¯re using some other browser } else return null; } //////////////////////½ºÅ¸ÀÏÇÁ·ÎÆÛƼ¾Ë¾Æ³»±â //////////////////////¼ýÀÚ ½°Ç¥ÀÔ·Â function number_format(nStr) {//¼Ò¼ýÁ¡ÀÌÇÏ ¹Ý¿Ã¸² nStr = nStr.split(',').join(''); nStr = nStr.split(' ').join(''); nStr = Number(nStr); nStr = Math.round(nStr); x1 = String(nStr); var rgx = /(\d+)(\d{3})/; while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + ',' + '$2'); } return x1; } function number_format_dot(nStr) {//¼Ò¼ýÁ¡ÀÌÇÏ Ç¥½Ã nStr = nStr.split(',').join(''); nStr = nStr.split(' ').join(''); nStr += ''; x = nStr.split('.'); x1 = x[0]; x2 = x.length > 1 ? '.' + x[1] : ''; var rgx = /(\d+)(\d{3})/; while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + ',' + '$2'); } return x1 + x2; } //////////////////////¼ýÀÚ ½°Ç¥ÀÔ·Â //////////////////////¾ÆÀÌÇÁ·¹ÀÓ Ã¢Å©±â Á¶Àý function resize(pa_id,o_id){ var the_height = jQuery(Dgi(o_id)).height() + 4; //ºê¶ó¿ìÁ®°£ ¿ÀÂ÷¸¦ ÁÙÀ̱â À§ÇØ 4¸¦ ´õÇÑ´Ù. parent.Dgi(pa_id).height=the_height; //»óÀ§ ÇÁ·¹ÀÓÀÇ Å©±â¸¦ Á¶ÀýÇÑ´Ù. } //ÀÚ½Äâ¿¡¼­ ³ôÀÌÀÇ ±âÁØÀÌ µÇ´Â id¸¦ ¼³Á¤ÇÑ´Ù. //À̶§ ¹Ùµð´Â ¼³Á¤ÇÒ ¼ö ¾ø´Ù. //////////////////////¾ÆÀÌÇÁ·¹ÀÓ Ã¢Å©±â Á¶Àý //////////////////////ÁÂÃø¼­ºê¸Þ´º function navi_on(navi_id,tops,frame) { //id,³ôÀÌ,ÇÁ·¹ÀÓ¼ö var navis = Dgi(navi_id); navis.style.filter='alpha(opacity=5)'; navis.style.opacity='.1'; navis.style.MozOpacity='.1'; navis.style.top = tops+'px'; //¸Þ´ºÀÇ ³ôÀ̸¦ ÁöÁ¤ÇÑ´Ù. navis.style.display = 'block'; //¸Þ´º°¡ ³ªÅ¸³ª°Ô ÇÑ´Ù. animateCSS(navis,frame,10,{ left:function(f,t){return 145-f+'px';} //left:155px; ,filter:function(f,t){return 'alpha(opacity='+10*f+')';} //filter:alpha(opacity=90); ,opacity:function(f,t){return '.'+f;} //opacity:.9; ,MozOpacity:function(f,t){return '.'+f;} //-moz-opacity:.9; }); //¾Ö´Ï¸ÞÀÌ¼Ç } function navi_out(navi_id) { var navis = Dgi(navi_id); navis.style.display = 'none'; //¸Þ´º°¡ »ç¶óÁö°Ô ÇÑ´Ù. } //////////////////////ÁÂÃø¼­ºê¸Þ´º //s=1+2+'a'; //3a->(1+2)+'a' //s='a'+1+2; //a12->('a'+1)+2 //+¿¬»êÀÚ´Â ¿À¸¥ÂÊÀ¸·ÎºÎÅÍ ÁøÇàµÇ±â ¶§¹®¿¡ µÎ °æ¿ì °ªÀº ´Ù¸£´Ù. //////////////////////ÁÂÃø·Î±×ÀÎâ function login_on(login_id,tops,frame) { //id,³ôÀÌ,ÇÁ·¹ÀÓ¼ö var login = Dgi(login_id); login.style.filter='alpha(opacity=5)'; login.style.opacity='.1'; login.style.MozOpacity='.1'; //login.style.top = '-1px'; //¸Þ´º°¡ ³ªÅ¸³ª°Ô ÇÑ´Ù. login.style.display = 'block'; //¸Þ´º°¡ ³ªÅ¸³ª°Ô ÇÑ´Ù. animateCSS(login,frame,9,{ top:function(f,t){return 30-f+'px';} //left:155px; ,filter:function(f,t){return 'alpha(opacity='+10*f+')';} //filter:alpha(opacity=90); ,opacity:function(f,t){return '.'+f;} //opacity:.9; ,MozOpacity:function(f,t){return '.'+f;} //-moz-opacity:.9; }); //¾Ö´Ï¸ÞÀÌ¼Ç } //////////////////////ÁÂÃø·Î±×ÀÎâ /////////////////////////īƮ»óǰ¿Å±â±â //Àüü¼±ÅÃÇϱâ function AllCheck(c,s) { var a = document.getElementsByName(c+'[]'); if(a) { for(var i=0;i des_pst) {des_pst = 0;} else if(des_pst > 0) {des_pst = (view-total)*width;} //////////// $J('#'+name+'_inner').animate( {marginLeft:des_pst}, {duration:speed, complete:function(){ Dgi(name+'_fr').value = des_pst; if(total-view > 0) { ar_lno.style.display = 'none';ar_rno.style.display = 'none'; ar_l.style.display = 'inline';ar_r.style.display = 'inline'; } if(total-view > 1) { if(Dgi(name+'_fr').value==0){ar_l.style.display = 'none';ar_lno.style.display = 'inline';} if(Dgi(name+'_fr').value==(view-total)*width){ar_r.style.display = 'none';ar_rno.style.display = 'inline';} } }} ); } //////////////////////////¿ìÃø Look Around ¸Þ´º ½½¶óÀ̵å /////////////ȸ¿øÁ¤º¸ÀÔ·Â //ºñ¹Ð¹øÈ£°ËÁõ function mbPassing(obj,id) { if(Dgi(id).value != '') { if(obj.value != '') { if(Dgi(id).value!=obj.value) { alert('ºñ¹Ð¹øÈ£ ÀÔ·ÂÀÌ Æ²¸³´Ï´Ù.\nµ¿ÀÏÇÏ°Ô 2ȸ ÀÔ·ÂÇØÁÖ¼¼¿ä.'); Dgi(id).focus(); obj.value=''; //°ËÁõ¶õ »èÁ¦ } } } } //À̸ÞÀÏÁÖ¼Ò°ËÁõ function mbMailing(obj) { if(obj.value != '') { //¼ýÀÚ¿µ¹®.@:_-¸¦ Á¦¿ÜÇÑ ¸ðµç ±ÛÀÚ »èÁ¦ var re=/[^a-z0-9.@_\-]/gi; obj.value=obj.value.replace(re,''); var regExp = /[a-z0-9]{2,}@[a-z0-9-]{2,}\.[a-z0-9]{2,}/i; //var regExp = /^(\w+)@(\w+)(\.(\w+)){2,}$/ig; if(!regExp.test(obj.value)){ alert('¸ÞÀÏÁÖ¼Ò°¡ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù.\nÁ¤È®ÇÏ°Ô ÀçÀÔ·ÂÇØÁÖ¼¼¿ä.'); obj.focus(); obj.value=obj.value; //Ä¿¼­¸¦ °¡Àå ¸¶Áö¸·¿¡ À§Ä¡ } } } //URLÁÖ¼Ò°ËÁõ function mbUrling(obj) { if(obj.value != '') { //¼ýÀÚ¿µ¹®.@:/-¸¦ Á¦¿ÜÇÑ ¸ðµç ±ÛÀÚ »èÁ¦ var re=/[^a-z0-9.@:\/\-]/gi; obj.value=obj.value.replace(re,''); var regExp = /(([a-z0-9][a-z0-9_-]*)(\.[a-z0-9][a-z0-9_-]*)+)(:(\d+))?\/?/i; if(!regExp.test(obj.value)){ alert('URLÀÌ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù.\nÁ¤È®ÇÏ°Ô ÀçÀÔ·ÂÇØÁÖ¼¼¿ä.'); obj.focus(); obj.value=obj.value; //Ä¿¼­¸¦ °¡Àå ¸¶Áö¸·¿¡ À§Ä¡ } } } //ÀüÈ­¹øÈ£¼ýÀÚ°ËÁõ function mbTeling(obj,digit) { if(obj.value != '') { //¼ýÀÚ¸¦ Á¦¿ÜÇÑ ¸ðµç ±ÛÀÚ »èÁ¦ var re=/[^0-9]/gi; obj.value=obj.value.replace(re,''); if(obj.value.lengthmax){ //±æÀÌ °Ë»ç alert('ÀÔ·ÂµÈ ¾ÆÀ̵𰡠³Ê¹« ±é´Ï´Ù.\n20ÀÚ ÀÌÇÏÀ¸·Î ÀçÀÔ·ÂÇØÁÖ¼¼¿ä.'); obj.focus(); } } } /////////////ȸ¿øÁ¤º¸ÀÔ·Â