14/27 페이지 열람 중
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;
function search_word(str) {var tmp = trim(str);var len = bytelength(tmp); if(len == 0 && str == "") {alert("검색어를 입력해 주세요.");return 0;} else if(len < 4) {alert("한글 2글자 이상, 영문 4글자 이상이어야 합니다");return 0;} else {return 1;}}
function bytelength(pstr) {var i, ch;len = pstr.length;for (i = 0; i < pstr.length; i++) {ch = pstr.substr(i,1).charCodeAt(0);if (ch > 127) { len++; }}return len;}
<?function Dialog(url){var win = showModalDialog('blank:about;', 'dialogWidth:500px; dialogtop=50%; dialogleft=50%; dialogHeight:600px; center=yes; screenTop=yes; scroll=no; status=no; help=no;');}?>
<?function trim(pstr) {var search = 0while (pstr.charAt(search) == " ") {search = search + 1}pstr = pstr.substring(search, (pstr.length))search = pstr.length - 1while (pstr.charAt(search) ==" "){search = search - 1}return pstr.substring(0, search + 1) } function submit_form() …
if (document.join.jumin1.value.length != 6){alert('올바른 주민등록번호를 입력해주세요.');document.join.jumin1.focus();return false;}else if (document.join.jumin2.value.length != 7){alert('올바른 주민등록번호를 입력해주세요.');document.join.jumin2.focus();return false;}else {var str_jumin1 = document.join.jumin1.value;var str_jumin…
var change_div=document.getElementById("div_0"+value);change.style.backgroundImage = "url(경로)";change.style.backgroundAttachment = "no-repeat";property가 나올때는 change.style.background = "url(경로) no-repeat";
1. 먼저 숫자만 입력받을 컨트롤을 다음과 같이 설정한다.<input type="text" name="card_no1" onKeypress="onlyNumber();">키를 누를때마다 다음과 onlyNumber() 라는 함수를 실행한다.2. 이제 함수를 정의한다.function onlyNumber(){if ((event.keyCode<48)||(event.keyCode>57))event.returnValue = false;}이벤트 객체의 k…