<script>
//insert_select(저장변수명,가로,폰트크기,보드색,배경색,선택색,화살표이미지);
//insert_select_option(저장변수명,폰트크기,보드색,배경색,선택색,value,view_value);
//기본셀릭트만들기
insert_select("test","100","8","F6D8B0","FFFFFF","F6D8B0","./images/menu_02/btn_select.gif");
//셀렉트 옵션추가
insert_select_option("test","8","F6D8B0","FFFFFF","F6D8B0","1","1");
insert_select_option("test","8","F6D8B0","FFFFFF","F6D8B0","2","2");
insert_select_option("test","8","F6D8B0","FFFFFF","F6D8B0","3","3","Y");
</script>
================================= js부분
//처리부분 js로 저장해서 사용하세요..^^
var zindex = 10000;
function insert_select ( sn,w,f,b,g,c,img) {
select_count = new Array();
select_count[sn] = 0;
zindex--;
document.write(" <div >");
document.write(" <table border='0' cellspacing='1' cellpadding='1' width='"+w+"' style='table-layout:fixed;width:"+w+";' bgcolor='"+b+"' onclick='select_click(\""+sn+"\");' >");
document.write(" <tr>");
document.write(" <td bgcolor='"+g+"'>");
document.write(" <input type='text' id='"+sn+"' name='"+sn+"' style='border:none;cursor:hand;width:100%;font-size:"+f+"pt;' onselectstart=\"return false\" readonly> ");
document.write(" </td>");
if(img != "") {
document.write(" <td width=18 bgcolor='"+g+"' align=center valign=bottom style='cursor:hand'><img src='"+img+"'></td>");
} else {
document.write(" <td width=18 bgcolor='"+g+"' align=center valign=bottom style='cursor:hand'>v</td>");
}
document.write(" </tr>");
document.write(" </table>");
document.write(" </div>");
document.write("<div id='"+sn+"_select_div' name='"+sn+"_select_div' style='display:none;z-index:"+zindex+";position:absolute;' onmouseover='"+sn+"_select_div.style.display=\"\";' onmouseout='"+sn+"_select_div.style.display=\"none\";'>");
document.write(" <table border='0' cellspacing='1' cellpadding='1' bgcolor='"+b+"' width="+w+" onmouseover='"+sn+"_select_div.style.display=\"\";'>");
document.write(" <tr><td bgcolor='"+g+"' style='line-height:1.3em;' id='"+sn+"_select_span'></td></tr>");
document.write(" </table>");
document.write(" </div>");
}
function insert_select_option(sn,f,b,g,c,v,vv,chk) {
select_count[sn] ++;
option_html = "<span style='width:100%;font-size:"+f+"pt' onclick='"+sn+".value=\""+v+"\";"+sn+"_select_div.style.display=\"none\";' onmouseover='this.style.background=\""+c+"\"' onmouseout='this.style.background=\""+g+"\"'>"+vv+"/"+select_count[sn] +"</span><br>";
if(select_count[sn] == 1 || chk == "Y" ) {
document.getElementById( sn ).value = v
}
document.getElementById( sn+"_select_span").innerHTML += option_html;
}
function select_click(sn) {
if ( document.getElementById( sn+"_select_div").style.display == "none") {
document.getElementById( sn+"_select_div").style.display = "";
} else {
document.getElementById( sn+"_select_div").style.display = "none";
}
}
//insert_select(저장변수명,가로,폰트크기,보드색,배경색,선택색,화살표이미지);
//insert_select_option(저장변수명,폰트크기,보드색,배경색,선택색,value,view_value);
//기본셀릭트만들기
insert_select("test","100","8","F6D8B0","FFFFFF","F6D8B0","./images/menu_02/btn_select.gif");
//셀렉트 옵션추가
insert_select_option("test","8","F6D8B0","FFFFFF","F6D8B0","1","1");
insert_select_option("test","8","F6D8B0","FFFFFF","F6D8B0","2","2");
insert_select_option("test","8","F6D8B0","FFFFFF","F6D8B0","3","3","Y");
</script>
================================= js부분
//처리부분 js로 저장해서 사용하세요..^^
var zindex = 10000;
function insert_select ( sn,w,f,b,g,c,img) {
select_count = new Array();
select_count[sn] = 0;
zindex--;
document.write(" <div >");
document.write(" <table border='0' cellspacing='1' cellpadding='1' width='"+w+"' style='table-layout:fixed;width:"+w+";' bgcolor='"+b+"' onclick='select_click(\""+sn+"\");' >");
document.write(" <tr>");
document.write(" <td bgcolor='"+g+"'>");
document.write(" <input type='text' id='"+sn+"' name='"+sn+"' style='border:none;cursor:hand;width:100%;font-size:"+f+"pt;' onselectstart=\"return false\" readonly> ");
document.write(" </td>");
if(img != "") {
document.write(" <td width=18 bgcolor='"+g+"' align=center valign=bottom style='cursor:hand'><img src='"+img+"'></td>");
} else {
document.write(" <td width=18 bgcolor='"+g+"' align=center valign=bottom style='cursor:hand'>v</td>");
}
document.write(" </tr>");
document.write(" </table>");
document.write(" </div>");
document.write("<div id='"+sn+"_select_div' name='"+sn+"_select_div' style='display:none;z-index:"+zindex+";position:absolute;' onmouseover='"+sn+"_select_div.style.display=\"\";' onmouseout='"+sn+"_select_div.style.display=\"none\";'>");
document.write(" <table border='0' cellspacing='1' cellpadding='1' bgcolor='"+b+"' width="+w+" onmouseover='"+sn+"_select_div.style.display=\"\";'>");
document.write(" <tr><td bgcolor='"+g+"' style='line-height:1.3em;' id='"+sn+"_select_span'></td></tr>");
document.write(" </table>");
document.write(" </div>");
}
function insert_select_option(sn,f,b,g,c,v,vv,chk) {
select_count[sn] ++;
option_html = "<span style='width:100%;font-size:"+f+"pt' onclick='"+sn+".value=\""+v+"\";"+sn+"_select_div.style.display=\"none\";' onmouseover='this.style.background=\""+c+"\"' onmouseout='this.style.background=\""+g+"\"'>"+vv+"/"+select_count[sn] +"</span><br>";
if(select_count[sn] == 1 || chk == "Y" ) {
document.getElementById( sn ).value = v
}
document.getElementById( sn+"_select_span").innerHTML += option_html;
}
function select_click(sn) {
if ( document.getElementById( sn+"_select_div").style.display == "none") {
document.getElementById( sn+"_select_div").style.display = "";
} else {
document.getElementById( sn+"_select_div").style.display = "none";
}
}
[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 439 | ||
| 7929 | 9년 전 | 373 | ||
| 7928 | 9년 전 | 456 | ||
| 7927 | 9년 전 | 370 | ||
| 7926 | 9년 전 | 680 | ||
| 7925 | 9년 전 | 393 | ||
| 7924 | 9년 전 | 377 | ||
| 7923 | 9년 전 | 371 | ||
| 7922 | 9년 전 | 404 | ||
| 7921 | 9년 전 | 421 | ||
| 7920 | 9년 전 | 337 | ||
| 7919 | 9년 전 | 347 | ||
| 7918 | 9년 전 | 502 | ||
| 7917 | 9년 전 | 353 | ||
| 7916 | 9년 전 | 438 | ||
| 7915 | 9년 전 | 440 | ||
| 7914 | 9년 전 | 449 | ||
| 7913 | 9년 전 | 624 | ||
| 7912 | 9년 전 | 455 | ||
| 7911 | 9년 전 | 390 | ||
| 7910 | 9년 전 | 436 | ||
| 7909 | 9년 전 | 539 | ||
| 7908 | 9년 전 | 478 | ||
| 7907 | 9년 전 | 415 | ||
| 7906 | 9년 전 | 432 | ||
| 7905 | 9년 전 | 403 | ||
| 7904 | 9년 전 | 388 | ||
| 7903 | 9년 전 | 386 | ||
| 7902 | 9년 전 | 584 | ||
| 7901 |
|
9년 전 | 762 | |
| 7900 | 9년 전 | 633 | ||
| 7899 | 9년 전 | 418 | ||
| 7898 | 9년 전 | 423 | ||
| 7897 | 9년 전 | 376 | ||
| 7896 | 9년 전 | 391 | ||
| 7895 | 9년 전 | 505 | ||
| 7894 | 9년 전 | 423 | ||
| 7893 | 9년 전 | 392 | ||
| 7892 | 9년 전 | 428 | ||
| 7891 | 9년 전 | 792 | ||
| 7890 | 9년 전 | 1224 | ||
| 7889 | 9년 전 | 761 | ||
| 7888 |
limsy1987
|
9년 전 | 571 | |
| 7887 | 9년 전 | 596 | ||
| 7886 | 9년 전 | 491 | ||
| 7885 | 9년 전 | 446 | ||
| 7884 | 9년 전 | 445 | ||
| 7883 | 9년 전 | 450 | ||
| 7882 | 9년 전 | 507 | ||
| 7881 | 9년 전 | 475 | ||
| 7880 | 9년 전 | 605 | ||
| 7879 | 9년 전 | 496 | ||
| 7878 | 9년 전 | 1263 | ||
| 7877 | 9년 전 | 790 | ||
| 7876 | 9년 전 | 528 | ||
| 7875 | 9년 전 | 602 | ||
| 7874 |
|
9년 전 | 825 | |
| 7873 | 9년 전 | 540 | ||
| 7872 | 9년 전 | 705 | ||
| 7871 | 9년 전 | 521 | ||
| 7870 | 9년 전 | 642 | ||
| 7869 | 9년 전 | 455 | ||
| 7868 | 9년 전 | 487 | ||
| 7867 | 9년 전 | 483 | ||
| 7866 | 9년 전 | 539 | ||
| 7865 | 9년 전 | 482 | ||
| 7864 | 9년 전 | 548 | ||
| 7863 | 9년 전 | 545 | ||
| 7862 | 9년 전 | 499 | ||
| 7861 | 9년 전 | 677 | ||
| 7860 | 9년 전 | 655 | ||
| 7859 | 9년 전 | 436 | ||
| 7858 | 9년 전 | 738 | ||
| 7857 | 9년 전 | 1122 | ||
| 7856 | 9년 전 | 555 | ||
| 7855 | 9년 전 | 783 | ||
| 7854 | 9년 전 | 742 | ||
| 7853 | 9년 전 | 627 | ||
| 7852 | 9년 전 | 553 | ||
| 7851 | 9년 전 | 541 | ||
| 7850 | 9년 전 | 621 | ||
| 7849 | 9년 전 | 388 | ||
| 7848 | 9년 전 | 458 | ||
| 7847 | 9년 전 | 697 | ||
| 7846 | 9년 전 | 488 | ||
| 7845 | 9년 전 | 457 | ||
| 7844 | 9년 전 | 428 | ||
| 7843 | 9년 전 | 467 | ||
| 7842 | 9년 전 | 441 | ||
| 7841 | 9년 전 | 417 | ||
| 7840 | 9년 전 | 430 | ||
| 7839 | 9년 전 | 472 | ||
| 7838 | 9년 전 | 535 | ||
| 7837 | 9년 전 | 380 | ||
| 7836 | 9년 전 | 432 | ||
| 7835 | 9년 전 | 507 | ||
| 7834 |
|
9년 전 | 1218 | |
| 7833 | 10년 전 | 471 | ||
| 7832 | 10년 전 | 454 | ||
| 7831 | 10년 전 | 608 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기