<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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1030 | 18년 전 | 1788 | ||
| 1029 | 18년 전 | 2221 | ||
| 1028 | 18년 전 | 2631 | ||
| 1027 | 18년 전 | 1791 | ||
| 1026 | 18년 전 | 1528 | ||
| 1025 | 18년 전 | 1543 | ||
| 1024 | 18년 전 | 1464 | ||
| 1023 | 18년 전 | 3227 | ||
| 1022 | 18년 전 | 2917 | ||
| 1021 | 18년 전 | 1676 | ||
| 1020 | 18년 전 | 3415 | ||
| 1019 | 18년 전 | 1842 | ||
| 1018 | 18년 전 | 1491 | ||
| 1017 | 18년 전 | 1958 | ||
| 1016 | 18년 전 | 2100 | ||
| 1015 | 18년 전 | 1632 | ||
| 1014 | 18년 전 | 2343 | ||
| 1013 | 18년 전 | 2001 | ||
| 1012 | 18년 전 | 1625 | ||
| 1011 | 18년 전 | 1785 | ||
| 1010 | 18년 전 | 2039 | ||
| 1009 | 18년 전 | 1804 | ||
| 1008 | 18년 전 | 1612 | ||
| 1007 | 18년 전 | 1666 | ||
| 1006 | 18년 전 | 3133 | ||
| 1005 | 18년 전 | 1997 | ||
| 1004 | 18년 전 | 1872 | ||
| 1003 | 18년 전 | 4369 | ||
| 1002 | 18년 전 | 4994 | ||
| 1001 | 18년 전 | 3164 | ||
| 1000 | 18년 전 | 2909 | ||
| 999 | 18년 전 | 3501 | ||
| 998 | 18년 전 | 2047 | ||
| 997 | 18년 전 | 2408 | ||
| 996 | 18년 전 | 2701 | ||
| 995 | 18년 전 | 2756 | ||
| 994 | 18년 전 | 2348 | ||
| 993 | 18년 전 | 1617 | ||
| 992 | 18년 전 | 3378 | ||
| 991 | 18년 전 | 1988 | ||
| 990 | 18년 전 | 2383 | ||
| 989 | 18년 전 | 2457 | ||
| 988 | 18년 전 | 2885 | ||
| 987 | 18년 전 | 5219 | ||
| 986 |
|
19년 전 | 2492 | |
| 985 |
|
19년 전 | 3342 | |
| 984 | 19년 전 | 4278 | ||
| 983 |
느낌좋은날
|
19년 전 | 2500 | |
| 982 | 19년 전 | 2467 | ||
| 981 | 19년 전 | 4042 | ||
| 980 | 19년 전 | 2748 | ||
| 979 |
Sinpre
|
19년 전 | 2990 | |
| 978 | 19년 전 | 2207 | ||
| 977 | 19년 전 | 2222 | ||
| 976 | 19년 전 | 1991 | ||
| 975 | 19년 전 | 3273 | ||
| 974 | 19년 전 | 2106 | ||
| 973 |
|
19년 전 | 2789 | |
| 972 |
|
19년 전 | 1748 | |
| 971 | 19년 전 | 5320 | ||
| 970 | 19년 전 | 3573 | ||
| 969 | 19년 전 | 4324 | ||
| 968 | 19년 전 | 3068 | ||
| 967 | 19년 전 | 2526 | ||
| 966 | 19년 전 | 3924 | ||
| 965 | 19년 전 | 2653 | ||
| 964 | 19년 전 | 2994 | ||
| 963 | 19년 전 | 2962 | ||
| 962 | 19년 전 | 4179 | ||
| 961 | 19년 전 | 3128 | ||
| 960 | 19년 전 | 3022 | ||
| 959 | 19년 전 | 3673 | ||
| 958 | 19년 전 | 2976 | ||
| 957 | 19년 전 | 2190 | ||
| 956 | 19년 전 | 2225 | ||
| 955 | 19년 전 | 2177 | ||
| 954 | 19년 전 | 2769 | ||
| 953 | 19년 전 | 2479 | ||
| 952 | 19년 전 | 3345 | ||
| 951 | 19년 전 | 3202 | ||
| 950 | 19년 전 | 1826 | ||
| 949 | 19년 전 | 2740 | ||
| 948 | 19년 전 | 7828 | ||
| 947 |
|
19년 전 | 2503 | |
| 946 |
DeepnBlue
|
19년 전 | 3106 | |
| 945 |
pearly
|
19년 전 | 2878 | |
| 944 | 19년 전 | 3027 | ||
| 943 |
|
19년 전 | 2227 | |
| 942 | 19년 전 | 2454 | ||
| 941 |
|
19년 전 | 4078 | |
| 940 | 19년 전 | 2235 | ||
| 939 |
|
19년 전 | 4220 | |
| 938 |
|
19년 전 | 2384 | |
| 937 | 19년 전 | 2077 | ||
| 936 |
|
19년 전 | 2329 | |
| 935 | 19년 전 | 1873 | ||
| 934 |
|
19년 전 | 2410 | |
| 933 | 19년 전 | 2202 | ||
| 932 |
|
19년 전 | 3072 | |
| 931 | 19년 전 | 1857 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기