7/16 페이지 열람 중
index.php 부분에 shop.js 파일을 불러오도록 되어있으니 shop.js 파일 내용 아래에============var clickmessage="그림에는 마우스 오른쪽 버튼이 금지되었어요" function disableclick(e) { if (document.all) { if (event.button==2||event.button==3) { if (event.srcElement.tagName=="IMG"){ alert(clickmessage); return false; } …
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 ) {endOfCo…
/* 스타일 */.SLB_center { cursor:pointer; visibility:hidden; background-color: #FFF}.SLB_close { cursor: pointer; display:none; font-family: verdana,tahoma; font-size: 9pt; background-color:#000000; color: #ffffff; padding-bottom: 4px; }.SLB_caption { cursor: pointer; display:none; font-family: verdana…
<script> function initMoving(target, position, topLimit, btmLimit) { if (!target) return false; var obj = target; obj.initTop = position; obj.topLimit = topLimit; obj.bottomLimit = document.documentElement.scrollHeight - btmLimit; obj.style.position = "absolute"; obj.to…
function lastday(calyear, calmonth){ var monthDays = new Array(31, 28, 31, 30, 31, 30, 31, 31,30, 31, 30, 31); if (((calyear % 4 == 0) && (calyear % 100 != 0)) || (calyear % 400 == 0)) monthDays[1] = 29; var nDays = monthDays[calmonth - 1]; return nDays;}
function CheckByte(str){var i;var strLen;var strByte;strLen = str.length;if(IEYES == 1){for(i=0, strByte=0;i<strLen;i++){if(str.charAt(i) >= ' ' && str.charAt(i) <= '~' )strByte++;elsestrByte += 2;}return strByte;}else{return strLen;}}
navigator.userAgent.indexOf("Opera") != -1 navigator.userAgent.indexOf("Safari") != -1navigator.platform.indexOf("Mac") != -1navigator.userAgent.indexOf("Firefox") != -1navigator.appVersion.indexOf("MSIE 8")navigator.platform.indexOf("Linux"…
function makeFlashObj(_swfURL_,_flashID_,_width_,_height_,_wmode_,_flashVars_,_bgColor_,_allowFullScreen_,_menu_){_wmode_ = (_wmode_ == undefined)? "transparent" : _wmode_;// wmode = "window/ opaque/ transparent"_bgColor_ = (_bgColor_ == undefined)? "#FFFFFF" : _bgColor…
function _getClientWidth() {var ret;if (self.innerHeight) {// IE 외 모든 브라우저ret = self.innerWidth;} else if (document.documentElement && document.documentElement.clientHeight) {// Explorer 6 Strictret = document.documentElement.clientWidth;} else if (document.body) {// IE Browserret = document…
function bluring(){ if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") { document.body.focus(); }}document.onfocusin=bluring;