<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년 전 | 2013 | |
| 1229 |
|
18년 전 | 2948 | |
| 1228 |
|
18년 전 | 2634 | |
| 1227 | 18년 전 | 2933 | ||
| 1226 | 18년 전 | 2364 | ||
| 1225 |
|
18년 전 | 2436 | |
| 1224 | 18년 전 | 2747 | ||
| 1223 |
|
18년 전 | 3995 | |
| 1222 |
mixdesign
|
18년 전 | 2636 | |
| 1221 |
|
18년 전 | 2754 | |
| 1220 | 18년 전 | 3210 | ||
| 1219 | 18년 전 | 2918 | ||
| 1218 | 18년 전 | 2114 | ||
| 1217 |
|
18년 전 | 2559 | |
| 1216 | 18년 전 | 2577 | ||
| 1215 |
mixdesign
|
18년 전 | 4059 | |
| 1214 |
|
18년 전 | 4789 | |
| 1213 | 18년 전 | 2325 | ||
| 1212 |
mixdesign
|
18년 전 | 2504 | |
| 1211 |
|
18년 전 | 2430 | |
| 1210 | 18년 전 | 3758 | ||
| 1209 |
mixdesign
|
18년 전 | 2378 | |
| 1208 |
mixdesign
|
18년 전 | 2380 | |
| 1207 |
mixdesign
|
18년 전 | 1729 | |
| 1206 |
mixdesign
|
18년 전 | 2006 | |
| 1205 |
mixdesign
|
18년 전 | 2704 | |
| 1204 |
mixdesign
|
18년 전 | 3582 | |
| 1203 | 18년 전 | 3097 | ||
| 1202 | 18년 전 | 2979 | ||
| 1201 | 18년 전 | 2036 | ||
| 1200 | 18년 전 | 4133 | ||
| 1199 | 18년 전 | 2174 | ||
| 1198 | 18년 전 | 4198 | ||
| 1197 | 18년 전 | 2510 | ||
| 1196 | 18년 전 | 2369 | ||
| 1195 |
|
18년 전 | 3471 | |
| 1194 | 18년 전 | 2243 | ||
| 1193 | 18년 전 | 2157 | ||
| 1192 | 18년 전 | 3276 | ||
| 1191 | 18년 전 | 3964 | ||
| 1190 | 18년 전 | 2227 | ||
| 1189 |
|
18년 전 | 2365 | |
| 1188 |
|
18년 전 | 3834 | |
| 1187 | 18년 전 | 2713 | ||
| 1186 | 18년 전 | 3379 | ||
| 1185 | 18년 전 | 2786 | ||
| 1184 | 18년 전 | 1668 | ||
| 1183 | 18년 전 | 2139 | ||
| 1182 | 18년 전 | 3707 | ||
| 1181 |
mermaid
|
18년 전 | 2923 | |
| 1180 | 18년 전 | 2983 | ||
| 1179 | 18년 전 | 3610 | ||
| 1178 | 18년 전 | 2178 | ||
| 1177 |
|
18년 전 | 2291 | |
| 1176 | 18년 전 | 3180 | ||
| 1175 | 18년 전 | 1880 | ||
| 1174 |
|
18년 전 | 2236 | |
| 1173 |
|
18년 전 | 2529 | |
| 1172 | 18년 전 | 1777 | ||
| 1171 | 18년 전 | 2110 | ||
| 1170 | 18년 전 | 1993 | ||
| 1169 | 18년 전 | 2508 | ||
| 1168 | 18년 전 | 1931 | ||
| 1167 | 18년 전 | 1727 | ||
| 1166 | 18년 전 | 1754 | ||
| 1165 | 18년 전 | 1730 | ||
| 1164 | 18년 전 | 2797 | ||
| 1163 | 18년 전 | 1560 | ||
| 1162 |
|
18년 전 | 5680 | |
| 1161 |
이걸~어쩌나~
|
18년 전 | 2412 | |
| 1160 | 18년 전 | 1673 | ||
| 1159 | 18년 전 | 4704 | ||
| 1158 | 18년 전 | 2056 | ||
| 1157 | 18년 전 | 4844 | ||
| 1156 | 18년 전 | 3195 | ||
| 1155 | 18년 전 | 2136 | ||
| 1154 | 18년 전 | 1832 | ||
| 1153 |
BEST79
|
18년 전 | 2114 | |
| 1152 | 18년 전 | 1729 | ||
| 1151 | 18년 전 | 1847 | ||
| 1150 | 18년 전 | 1850 | ||
| 1149 |
inniskun
|
18년 전 | 2484 | |
| 1148 |
|
18년 전 | 3500 | |
| 1147 |
|
18년 전 | 5980 | |
| 1146 |
|
18년 전 | 3867 | |
| 1145 | 18년 전 | 3061 | ||
| 1144 | 18년 전 | 2141 | ||
| 1143 | 18년 전 | 2417 | ||
| 1142 | 18년 전 | 2205 | ||
| 1141 |
|
18년 전 | 2308 | |
| 1140 | 18년 전 | 2418 | ||
| 1139 | 18년 전 | 2848 | ||
| 1138 | 18년 전 | 2542 | ||
| 1137 | 18년 전 | 2002 | ||
| 1136 | 18년 전 | 3134 | ||
| 1135 | 18년 전 | 3598 | ||
| 1134 | 18년 전 | 3841 | ||
| 1133 |
자반고등어
|
18년 전 | 3348 | |
| 1132 | 18년 전 | 3395 | ||
| 1131 | 18년 전 | 2578 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기