<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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1230 |
|
18년 전 | 2018 | |
| 1229 |
|
18년 전 | 2955 | |
| 1228 |
|
18년 전 | 2642 | |
| 1227 | 18년 전 | 2940 | ||
| 1226 | 18년 전 | 2370 | ||
| 1225 |
|
18년 전 | 2442 | |
| 1224 | 18년 전 | 2753 | ||
| 1223 |
|
18년 전 | 4000 | |
| 1222 |
mixdesign
|
18년 전 | 2638 | |
| 1221 |
|
18년 전 | 2761 | |
| 1220 | 18년 전 | 3218 | ||
| 1219 | 18년 전 | 2927 | ||
| 1218 | 18년 전 | 2121 | ||
| 1217 |
|
18년 전 | 2564 | |
| 1216 | 18년 전 | 2583 | ||
| 1215 |
mixdesign
|
18년 전 | 4070 | |
| 1214 |
|
18년 전 | 4796 | |
| 1213 | 18년 전 | 2330 | ||
| 1212 |
mixdesign
|
18년 전 | 2510 | |
| 1211 |
|
18년 전 | 2437 | |
| 1210 | 18년 전 | 3764 | ||
| 1209 |
mixdesign
|
18년 전 | 2381 | |
| 1208 |
mixdesign
|
18년 전 | 2382 | |
| 1207 |
mixdesign
|
18년 전 | 1734 | |
| 1206 |
mixdesign
|
18년 전 | 2014 | |
| 1205 |
mixdesign
|
18년 전 | 2711 | |
| 1204 |
mixdesign
|
18년 전 | 3583 | |
| 1203 | 18년 전 | 3106 | ||
| 1202 | 18년 전 | 2990 | ||
| 1201 | 18년 전 | 2038 | ||
| 1200 | 18년 전 | 4135 | ||
| 1199 | 18년 전 | 2178 | ||
| 1198 | 18년 전 | 4201 | ||
| 1197 | 18년 전 | 2514 | ||
| 1196 | 18년 전 | 2373 | ||
| 1195 |
|
18년 전 | 3477 | |
| 1194 | 18년 전 | 2251 | ||
| 1193 | 18년 전 | 2157 | ||
| 1192 | 18년 전 | 3278 | ||
| 1191 | 18년 전 | 3968 | ||
| 1190 | 18년 전 | 2232 | ||
| 1189 |
|
18년 전 | 2375 | |
| 1188 |
|
18년 전 | 3841 | |
| 1187 | 18년 전 | 2724 | ||
| 1186 | 18년 전 | 3388 | ||
| 1185 | 18년 전 | 2796 | ||
| 1184 | 18년 전 | 1677 | ||
| 1183 | 18년 전 | 2148 | ||
| 1182 | 18년 전 | 3715 | ||
| 1181 |
mermaid
|
18년 전 | 2930 | |
| 1180 | 18년 전 | 2987 | ||
| 1179 | 18년 전 | 3616 | ||
| 1178 | 18년 전 | 2181 | ||
| 1177 |
|
18년 전 | 2295 | |
| 1176 | 18년 전 | 3184 | ||
| 1175 | 18년 전 | 1887 | ||
| 1174 |
|
18년 전 | 2242 | |
| 1173 |
|
18년 전 | 2532 | |
| 1172 | 18년 전 | 1780 | ||
| 1171 | 18년 전 | 2115 | ||
| 1170 | 18년 전 | 1999 | ||
| 1169 | 18년 전 | 2514 | ||
| 1168 | 18년 전 | 1940 | ||
| 1167 | 18년 전 | 1732 | ||
| 1166 | 18년 전 | 1756 | ||
| 1165 | 18년 전 | 1736 | ||
| 1164 | 18년 전 | 2804 | ||
| 1163 | 18년 전 | 1565 | ||
| 1162 |
|
18년 전 | 5685 | |
| 1161 |
이걸~어쩌나~
|
18년 전 | 2416 | |
| 1160 | 18년 전 | 1676 | ||
| 1159 | 18년 전 | 4708 | ||
| 1158 | 18년 전 | 2059 | ||
| 1157 | 18년 전 | 4847 | ||
| 1156 | 18년 전 | 3196 | ||
| 1155 | 18년 전 | 2138 | ||
| 1154 | 18년 전 | 1837 | ||
| 1153 |
BEST79
|
18년 전 | 2117 | |
| 1152 | 18년 전 | 1740 | ||
| 1151 | 18년 전 | 1850 | ||
| 1150 | 18년 전 | 1853 | ||
| 1149 |
inniskun
|
18년 전 | 2488 | |
| 1148 |
|
18년 전 | 3509 | |
| 1147 |
|
18년 전 | 5982 | |
| 1146 |
|
18년 전 | 3872 | |
| 1145 | 18년 전 | 3065 | ||
| 1144 | 18년 전 | 2151 | ||
| 1143 | 18년 전 | 2426 | ||
| 1142 | 18년 전 | 2213 | ||
| 1141 |
|
18년 전 | 2316 | |
| 1140 | 18년 전 | 2422 | ||
| 1139 | 18년 전 | 2851 | ||
| 1138 | 18년 전 | 2545 | ||
| 1137 | 18년 전 | 2004 | ||
| 1136 | 18년 전 | 3134 | ||
| 1135 | 18년 전 | 3599 | ||
| 1134 | 18년 전 | 3844 | ||
| 1133 |
자반고등어
|
18년 전 | 3352 | |
| 1132 | 18년 전 | 3401 | ||
| 1131 | 18년 전 | 2581 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기