블로그 이미지

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
  • total
  • today
  • yesterday
2011. 3. 24. 16:51 JavaScript
border:1px solid red;
posted by 천상의날개
2011. 3. 10. 10:18 JavaScript

str.replace(/-/gi, "");
posted by 천상의날개
2010. 4. 9. 17:40 JavaScript
<a href="#" onClick="window.open('test.php?no=1554','','width=400,height=300,toolbars=no,menubar=no,status=no,resizable=no,scrollbars=no,location=no');">mod</a>

<a href="#" onClick="if(confirm(' 데이터가 영구히 삭제됩니다. \n\n 정말 삭제하시겠습니까? ')==true){location.href='/test.php?ch=1&mode=22';}">del</a>

'JavaScript' 카테고리의 다른 글

붉은 라인 그리기  (0) 2011.03.24
자바스크립트 리플레이스all  (0) 2011.03.10
javascript로 table row와 cell생성 제어  (0) 2010.04.08
div 테그  (0) 2010.04.02
현제 쿠키값 보기  (0) 2010.03.02
posted by 천상의날개
2010. 4. 8. 09:56 JavaScript
<html>
 <head>
  <script languge="javacript">
   function createRowAndCell(){
    var mtable=document.getElementById("myTable");
     var firstRow=mtable.insertRow(0);     
     var firstCell=firstRow.insertCell(0);       
     firstCell.colSpan="2";
     firstCell.height="1";
     firstCell.bgColor="#AAC2E1";
          
     var secondRow=mtable.insertRow(1);
     var second1Cell=secondRow.insertCell(0);
     second1Cell.innerHTML="dddd";
     var second2Cell=secondRow.insertCell(1);
     second2Cell.innerHTML="ㅋㅋㅋ";
       
     alert("1.1 번째 글짜바뀜");
     mtable.rows[1].cells[1].innerHTML="ㄷㄷㄷㄷㄷ";
   }   
   </script>
 </head>
 <body>
  <button onclick="createRowAndCell();">dddd</button>
  <table id="mytable"> 
   <tr>
    <td height="1" colSpan="2" bgColor="#AAC2E1"></td>
   </tr>  
   <tr>
    <td>
     111
    </td>
    <td>
     222
    </td>
   </tr>
   
  </table>
  
 </body>
</html>
posted by 천상의날개
2010. 4. 2. 17:22 JavaScript

<div style="position:relative;">
  <div id="sub_title_option" style="position:absolute;z-index:+10;width:400px;height:400px;border:1px,solid;backgroundColor:blue;display:none">
           <table border='0' cellspacing='0' cellpadding='0' width='100%'>
             <select name="sub_title_no">
               <option value="">==선택==</option>
               <option value="1">수학의정석</option>
               <option value="2">영어완전정복</option>
             </select>
           </table>
           <table border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td align="rignt"><input type="button" value="닫기" onClick="sub_title_option_view('');"></td>
             </tr>
           </table>
         </div>
         </div>


function sub_title_option_view(opt){
    alert(opt);
 if(opt>0){
  document.getElementById('sub_title_option').style.display=""; //보임
 }else{
  document.getElementById('sub_title_option').style.display="none"; //안보임
 }
}
posted by 천상의날개
2010. 3. 2. 17:31 JavaScript
주소창에 치면 나온다!!
javascript:alert(document.cookie)

'JavaScript' 카테고리의 다른 글

javascript로 table row와 cell생성 제어  (0) 2010.04.08
div 테그  (0) 2010.04.02
자식창에서 부모창 함수 실행  (0) 2010.01.29
popup post로 넘기기  (0) 2010.01.29
form 엑션으로 가기전 체크 가능한것 onSubmit();  (0) 2010.01.29
posted by 천상의날개
2010. 1. 29. 11:54 JavaScript
textMain.html (부모창)
aa.html (자식창)
posted by 천상의날개
2010. 1. 29. 11:43 JavaScript
posted by 천상의날개
2010. 1. 29. 11:36 JavaScript

<form name="form1" method="post" onSubmit="return encrypt(this);">
onSubmit="return encrypt(this);" 라는 명령은?
form 안의 내용을 action 속성의 값(주소)로 넘겨주기 직전에 submit이 실행된 form 자신을 변수로 가지고 encrypt() 라는 함수를 실행해라.
이렇게 생각 하시면 됩니다.
encrypt(this) 함수가 false 리턴시 엑션실행을 안함

posted by 천상의날개
2010. 1. 29. 11:35 JavaScript
jsText.html
a.js
b.js
posted by 천상의날개