Story/Javascript 썸네일형 리스트형 윈도우 미디어 플레이어 이벤트 캡춰 - Capturing Keyboard and Mouse Events The EnableContextMenu and ClickToPlay properties provide for user input through the image window. If EnableContextMenu is true, right-clicking on the image window opens a context menu that gives the user access to many of the Windows Media Player control properties. When the ClickToPlay property is true, users can start Windows Media Player by clicking the image window. To receive mouse movement.. 더보기 사이트 북마크 - ie, ff, opera 또는 더보기 네이버 지도 api 사용하기 더보기 input 상자안에 기본값을 설정하고 focus가 들어왔을때 기본값을 없애주는 방법 JavaScript Clear Textfield Default Value onClick So basically if you have a text field with default text like “Enter Email Address Here” and you want it so that when the user clicks in it, the text disappears, this is the code to use. It goes one step further so that if you do not enter anything it puts the default text back and if there is something entered it doesn’t get tripped up and clear i.. 더보기 FCKeditor_2.x 위지윅 에디터 http://ckeditor.com/ http://docs.cksource.com/FCKeditor_2.x http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/PHP 페이지의 내용은 다음과 같다. It is very easy to use FCKeditor in your php web pages. Just follow these steps. Integration step by step Step 1 The first thing to do is to include the "PHP Integration Module" file in the top of your page as in the example below: Of course the inc.. 더보기 javascript 로 특정 이미지위를 클릭했을때 이미지상 클릭한 좌표값 구하기 위와 같이 하면 화면에서의 좌표가 아닌 이미지에서 좌표를 구할수있다. event.x ,event.y ( event.clientX ,event.clientY) 를 사용하면 해당 프레임내에서의 좌표를 event.screenX , event.screenY 를 사용하면 사용자 화면(브라우져)에서의 좌표값을 구할수있다. 더보기 미디어 플레이어 플레이 목록 asx 미디어 플레이어를 사용하여 여러항목을 재생시킬때 asx 파일을 이용하면 된다 파일예제는 노래제목 노래제목 플레이어는 와 같다 현재 재생되고있는 항목이 몇번째인지 알고싶을땐 function syncframe(){ try{ for( var i = 0 ; i < this.BackPlayer.currentPlaylist.count ; i++ ){ if(this.BackPlayer.currentPlaylist.item(i).sourceURL == BackPlayer.controls.currentItem.sourceURL ){ //이때의 i 값이 해당 항목이다. } } }catch(e){} } 더보기 키값을 임의로 지정하는 배열만들기 javascript key 값을 갇는 배열 만들기 var a = {'a':0, 'b':1, 'c':2}; var b = new Array(); b['a'] = 0; b['b'] = 1; b['c'] = 2; var c = new Object(); c.a = 0; c.b = 1; c.c = 2; 이 배열을 이용할때는 for (var key in a) { alert(a[key]) } 와 같은 형태로 이용할수있다. 더보기 두 날짜 사이의 날짜 수 계산 / 몇일인지 계산 f.e_sdate.value , f.e_edate.value 두 값은 2009-02-10 처럼 4자리 2자리 2자리 로 날짜 포맷이 정확한 상태일때로 가정한다. function calc_date_diff(){ if(f.e_sdate.value && f.e_edate.value){ var tmps = f.e_sdate.value.split("-"); var tmpe = f.e_edate.value.split("-"); var sDate = new Date(tmps[0],tmps[1]-1,tmps[2]); var eDate = new Date(tmpe[0],tmpe[1]-1,tmpe[2]); var days = Math.floor( ( parseInt(eDate.getTime()) - parseInt(sDa.. 더보기 날짜 유효성 검사 /***** * 날짜 유효성 검사 * return : boolean *****/ function check_date(year,month,day){ if( year.length == 4 && month.length > 0 && month.length 0 && day.length < 3 ){ month = month-1; // month - 1 한 의미에 주의 if(month.length == 1) month = '0' + month.toString(); if(day.length == 1) day = '0' + day.toString(); vDate = new Date(year,month,day); //vDate = new Date(); //vDate.setFullYear.. 더보기 이전 1 2 3 4 5 6 다음