//////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ¢Æ imgOver // //************************************************************************************************************** // // Example) // // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// function imgOver(imgEl,opt) { var src = imgEl.getAttribute('src'); var ftype = src.substring(src.lastIndexOf('.'), src.length); if (opt == 'out') imgEl.src = imgEl.src.replace("_on"+ftype, ftype); else imgEl.src = imgEl.src.replace(ftype, "_on"+ftype); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ¢Æ setPng24 // //************************************************************************************************************** // // Usage) IE 7 ÀÌÇÏ¿¡¼­ png24 ÀÇ ¾ËÆÄä³Î Áö¿ø // // Example) // // - css ÆÄÀ϶Ǵ ¹®¼­³»¿¡ .png24{tmp:expression(setPng24(this));} °¡ ÁöÁ¤µÇÀÖ¾î¾ß »ç¿ë°¡´É // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// function setPng24(obj) { var browser = navigator.appName; var version = parseFloat(navigator.appVersion.replace (/^.*MSIE ([.0-9]+).*$/,"$1")); if(browser.indexOf("Internet Explorer") && version < 7.0 ) { // IE6 ÀÌÇÏ¿¡¼­¸¸ µ¿ÀÛ 2008-03-14 by zardsama obj.width=obj.height=1; obj.className=obj.className.replace(/\bpng24\b/i,''); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" obj.src=''; return ''; } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ¢Æ eaChg( // //************************************************************************************************************** // // Usage) input text ¼ýÀÚ up & down // // Example) // // // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// function eaChg(f,pm){ if (pm == 1) { f.buy_ea.value++; }else { if (f.buy_ea.value <= 1) return; f.buy_ea.value--; } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ¢Æ goFlash // //************************************************************************************************************** // // Usage) Ç÷¡½Ã ¸µÅ© ÀÚ¹Ù½ºÅ©¸³Æ® ¿¬µ¿ // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// var flashLink=new Array(); flashLink[00]="/"; function goFlash(n){ if (flashLink[n]) location.href=flashLink[n]; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ¢Æ backTop // //************************************************************************************************************** // // Usage) »ó´ÜÀ̵¿ top button // // Example) // // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// function backTop() { x = document.body.scrollLeft; y = document.body.scrollTop; step = 2; while ((x != 0) || (y != 0)) { scroll (x, y); step += (step * step / 1); x -= step; y -= step; if (x < 0) x = 0; if (y < 0) y = 0; } scroll (0, 0); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ¢Æ bookmarksite // //************************************************************************************************************** // // Usage) Áñ°Üã±â // // Example) // // - À§»ç¸ôÀÇ °æ¿ì // °°ÀÌ phpº¯¼ö¿Í ÇÔ²² »ç¿ë°¡´É // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// function addBookmark() { var url = root_url; var title = document.title; if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print) { // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all) // IE window.external.AddFavorite(url, title); } //////////////////////////////////////////////////////////////////////////////////////////// // // ¢Æ R2Slider 1.0 // // - 2008-03-20 by zardsama // //*************************************************************************************** // // Usage) // var º¯¼ö¸í = new R2Slider("·¹À̾î ID","º¯¼ö¸í", ¼Óµµ, »ó´Ü¸¶Áø, DTD); // º¯¼ö¸í.slide(); // - ¼Óµµ, »ó´Ü¸¶ÁøÀº »ý·« °¡´É / ÃßÈÄ º¯°æ °¡´É // - 'º¯¼ö¸í.limitTop' ȤÀº 'º¯¼ö¸í.limitBottom' À¸·Î »ó/ÇÏ´Ü ÇÑ°è ÁöÁ¡ ¼³Á¤°¡´É // // Example) //
// // //////////////////////////////////////////////////////////////////////////////////////////// R2Slider = function(id, slider, divPitch, marginTop, dElement) { if (isNaN(parseInt(marginTop))) marginTop = 0; // »ó´Ü ¸¶Áø µðÆúÆ® if (isNaN(parseInt(divPitch))) divPitch = 15; // À̵¿ °£°Ý µðÆúÆ® if (!dElement) dElement = document.documentElement; // DTD strict À϶§ ( Transitional À϶§´Â document.body ) this.timer; // ŸÀÌ¸Ó º¯¼ö this.slider = slider; // °´Ã¼ º¯¼ö¸í this.obj = document.getElementById (id); // ¿ÀºêÁ§Æ® this.marginTop = parseInt(marginTop); // »ó´Ü ¸¶Áø this.divPitch = parseInt(divPitch); // À̵¿ °£°Ý this.dElement = dElement; // DTD ¿¡ µû¸¥ µµÅ¥¸ÕÆ® ¿¤¸®¸ÕÆ® this.limitTop; // »ó´Ü ÇÑ°èÁ¡ this.limitBottom; // ÇÏ´Ü ÇÑ°èÁ¡ } R2Slider.prototype.moveIt = function(){ var pitch = (parseInt(this.dElement.scrollTop)+ parseInt(this.marginTop)) - parseInt(this.obj.style.top); if (pitch == 0) return; else nextPos = parseInt(this.obj.style.top) + pitch / this.divPitch nextPos = (pitch > 0) ? Math.ceil(nextPos) : Math.floor(nextPos); var limitBottom = this.dElement.scrollHeight - parseInt(this.limitBottom)- parseInt(this.obj.offsetHeight); if ( this.limitTop && nextPos < this.limitTop ) nextPos = this.limitTop; if ( this.limitBottom && nextPos > limitBottom ) nextPos = limitBottom; if (nextPos < this.marginTop) nextPos = this.marginTop; if (isNaN(nextPos)) nextPos = 0; this.obj.style.top = nextPos+"px"; } R2Slider.prototype.slide = function() { this.timer = setInterval(""+this.slider+".moveIt()", 10); } // µ¿´ë¹®¼¾ÅÍ °­¹Î¼ö´ë¸® Ãß°¡½ºÅ©¸³Æ® 2011.06.01 // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ¢Æ bluring // //************************************************************************************************************** // // Example) // ¸¶¿ì½º Ŭ¸¯½Ã Á¡¼± ¾ø¾Ö´Â ½ºÅ©¸³Æ® Àüü ÅÂ±× // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// function bluring(){ if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); } document.onfocusin=bluring; function overView(idnum, stat){ //alert(idnum); //if(document.getElementById(idnum)=='null' || document.getElementById(idnum)=='undefined') return false; if (stat == 1){ document.getElementById(idnum).style.display="block"; }else{ document.getElementById(idnum).style.display="none"; } }