<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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 830 |
|
19년 전 | 2195 | |
| 829 |
|
19년 전 | 1939 | |
| 828 |
|
19년 전 | 1821 | |
| 827 |
|
19년 전 | 1658 | |
| 826 |
|
19년 전 | 1857 | |
| 825 |
|
19년 전 | 1905 | |
| 824 |
|
19년 전 | 1960 | |
| 823 |
|
19년 전 | 2699 | |
| 822 |
|
19년 전 | 5336 | |
| 821 |
|
19년 전 | 1729 | |
| 820 |
|
19년 전 | 1586 | |
| 819 |
|
19년 전 | 1452 | |
| 818 |
|
19년 전 | 1611 | |
| 817 |
|
19년 전 | 1533 | |
| 816 |
|
19년 전 | 1453 | |
| 815 |
|
19년 전 | 1468 | |
| 814 |
|
19년 전 | 1387 | |
| 813 |
|
19년 전 | 1454 | |
| 812 | 19년 전 | 2829 | ||
| 811 |
pearly
|
19년 전 | 3846 | |
| 810 |
pearly
|
19년 전 | 5227 | |
| 809 |
|
19년 전 | 1388 | |
| 808 |
pearly
|
19년 전 | 4545 | |
| 807 | 19년 전 | 2985 | ||
| 806 |
|
19년 전 | 1509 | |
| 805 |
|
19년 전 | 2700 | |
| 804 |
|
19년 전 | 3626 | |
| 803 |
|
19년 전 | 1818 | |
| 802 |
|
19년 전 | 3795 | |
| 801 |
|
19년 전 | 1889 | |
| 800 | 19년 전 | 3777 | ||
| 799 | 19년 전 | 3445 | ||
| 798 | 19년 전 | 4211 | ||
| 797 | 19년 전 | 4084 | ||
| 796 |
|
19년 전 | 1901 | |
| 795 |
|
19년 전 | 1864 | |
| 794 | 19년 전 | 4283 | ||
| 793 | 19년 전 | 2677 | ||
| 792 | 19년 전 | 2552 | ||
| 791 | 19년 전 | 2411 | ||
| 790 | 19년 전 | 1989 | ||
| 789 | 19년 전 | 2599 | ||
| 788 | 19년 전 | 2215 | ||
| 787 | 19년 전 | 1855 | ||
| 786 | 19년 전 | 1979 | ||
| 785 | 19년 전 | 1452 | ||
| 784 |
|
19년 전 | 1700 | |
| 783 | 19년 전 | 2848 | ||
| 782 |
|
19년 전 | 1971 | |
| 781 | 19년 전 | 3260 | ||
| 780 | 19년 전 | 3168 | ||
| 779 |
|
19년 전 | 2253 | |
| 778 |
|
19년 전 | 1808 | |
| 777 | 19년 전 | 2851 | ||
| 776 | 19년 전 | 2915 | ||
| 775 | 19년 전 | 4028 | ||
| 774 |
|
19년 전 | 1999 | |
| 773 | 19년 전 | 2631 | ||
| 772 | 19년 전 | 2348 | ||
| 771 | 19년 전 | 3479 | ||
| 770 |
|
19년 전 | 1448 | |
| 769 | 19년 전 | 1511 | ||
| 768 | 19년 전 | 1784 | ||
| 767 | 19년 전 | 2208 | ||
| 766 | 19년 전 | 1838 | ||
| 765 | 19년 전 | 1698 | ||
| 764 |
|
19년 전 | 2120 | |
| 763 |
|
19년 전 | 2234 | |
| 762 |
|
19년 전 | 4968 | |
| 761 | 19년 전 | 2337 | ||
| 760 |
|
19년 전 | 3200 | |
| 759 | 19년 전 | 2648 | ||
| 758 |
|
19년 전 | 2413 | |
| 757 | 19년 전 | 4710 | ||
| 756 | 19년 전 | 2577 | ||
| 755 |
|
19년 전 | 2423 | |
| 754 |
|
19년 전 | 1974 | |
| 753 |
|
19년 전 | 1751 | |
| 752 |
pearly
|
19년 전 | 3377 | |
| 751 | 19년 전 | 2356 | ||
| 750 |
|
19년 전 | 6172 | |
| 749 | 19년 전 | 2044 | ||
| 748 |
|
19년 전 | 1913 | |
| 747 |
|
19년 전 | 2711 | |
| 746 |
|
19년 전 | 1825 | |
| 745 | 19년 전 | 2288 | ||
| 744 | 19년 전 | 2123 | ||
| 743 |
|
19년 전 | 3580 | |
| 742 | 19년 전 | 2591 | ||
| 741 | 19년 전 | 2752 | ||
| 740 |
|
19년 전 | 4378 | |
| 739 | 19년 전 | 3556 | ||
| 738 |
|
19년 전 | 2312 | |
| 737 | 19년 전 | 4324 | ||
| 736 | 19년 전 | 3282 | ||
| 735 |
홀로남은자
|
19년 전 | 4157 | |
| 734 |
홀로남은자
|
19년 전 | 2032 | |
| 733 |
홀로남은자
|
19년 전 | 2239 | |
| 732 | 19년 전 | 2148 | ||
| 731 | 19년 전 | 3364 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기