<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년 전 | 2012 | |
| 1229 |
|
18년 전 | 2946 | |
| 1228 |
|
18년 전 | 2632 | |
| 1227 | 18년 전 | 2932 | ||
| 1226 | 18년 전 | 2363 | ||
| 1225 |
|
18년 전 | 2434 | |
| 1224 | 18년 전 | 2746 | ||
| 1223 |
|
18년 전 | 3991 | |
| 1222 |
mixdesign
|
18년 전 | 2633 | |
| 1221 |
|
18년 전 | 2751 | |
| 1220 | 18년 전 | 3210 | ||
| 1219 | 18년 전 | 2914 | ||
| 1218 | 18년 전 | 2113 | ||
| 1217 |
|
18년 전 | 2558 | |
| 1216 | 18년 전 | 2573 | ||
| 1215 |
mixdesign
|
18년 전 | 4057 | |
| 1214 |
|
18년 전 | 4788 | |
| 1213 | 18년 전 | 2323 | ||
| 1212 |
mixdesign
|
18년 전 | 2499 | |
| 1211 |
|
18년 전 | 2428 | |
| 1210 | 18년 전 | 3757 | ||
| 1209 |
mixdesign
|
18년 전 | 2377 | |
| 1208 |
mixdesign
|
18년 전 | 2379 | |
| 1207 |
mixdesign
|
18년 전 | 1726 | |
| 1206 |
mixdesign
|
18년 전 | 2005 | |
| 1205 |
mixdesign
|
18년 전 | 2703 | |
| 1204 |
mixdesign
|
18년 전 | 3582 | |
| 1203 | 18년 전 | 3095 | ||
| 1202 | 18년 전 | 2977 | ||
| 1201 | 18년 전 | 2035 | ||
| 1200 | 18년 전 | 4131 | ||
| 1199 | 18년 전 | 2173 | ||
| 1198 | 18년 전 | 4198 | ||
| 1197 | 18년 전 | 2510 | ||
| 1196 | 18년 전 | 2368 | ||
| 1195 |
|
18년 전 | 3469 | |
| 1194 | 18년 전 | 2241 | ||
| 1193 | 18년 전 | 2155 | ||
| 1192 | 18년 전 | 3276 | ||
| 1191 | 18년 전 | 3963 | ||
| 1190 | 18년 전 | 2223 | ||
| 1189 |
|
18년 전 | 2363 | |
| 1188 |
|
18년 전 | 3833 | |
| 1187 | 18년 전 | 2710 | ||
| 1186 | 18년 전 | 3373 | ||
| 1185 | 18년 전 | 2776 | ||
| 1184 | 18년 전 | 1667 | ||
| 1183 | 18년 전 | 2135 | ||
| 1182 | 18년 전 | 3704 | ||
| 1181 |
mermaid
|
18년 전 | 2921 | |
| 1180 | 18년 전 | 2973 | ||
| 1179 | 18년 전 | 3608 | ||
| 1178 | 18년 전 | 2174 | ||
| 1177 |
|
18년 전 | 2287 | |
| 1176 | 18년 전 | 3178 | ||
| 1175 | 18년 전 | 1878 | ||
| 1174 |
|
18년 전 | 2231 | |
| 1173 |
|
18년 전 | 2528 | |
| 1172 | 18년 전 | 1777 | ||
| 1171 | 18년 전 | 2107 | ||
| 1170 | 18년 전 | 1990 | ||
| 1169 | 18년 전 | 2507 | ||
| 1168 | 18년 전 | 1929 | ||
| 1167 | 18년 전 | 1726 | ||
| 1166 | 18년 전 | 1753 | ||
| 1165 | 18년 전 | 1730 | ||
| 1164 | 18년 전 | 2787 | ||
| 1163 | 18년 전 | 1559 | ||
| 1162 |
|
18년 전 | 5680 | |
| 1161 |
이걸~어쩌나~
|
18년 전 | 2411 | |
| 1160 | 18년 전 | 1672 | ||
| 1159 | 18년 전 | 4704 | ||
| 1158 | 18년 전 | 2054 | ||
| 1157 | 18년 전 | 4843 | ||
| 1156 | 18년 전 | 3193 | ||
| 1155 | 18년 전 | 2136 | ||
| 1154 | 18년 전 | 1832 | ||
| 1153 |
BEST79
|
18년 전 | 2111 | |
| 1152 | 18년 전 | 1728 | ||
| 1151 | 18년 전 | 1844 | ||
| 1150 | 18년 전 | 1845 | ||
| 1149 |
inniskun
|
18년 전 | 2482 | |
| 1148 |
|
18년 전 | 3500 | |
| 1147 |
|
18년 전 | 5977 | |
| 1146 |
|
18년 전 | 3866 | |
| 1145 | 18년 전 | 3061 | ||
| 1144 | 18년 전 | 2140 | ||
| 1143 | 18년 전 | 2410 | ||
| 1142 | 18년 전 | 2199 | ||
| 1141 |
|
18년 전 | 2306 | |
| 1140 | 18년 전 | 2416 | ||
| 1139 | 18년 전 | 2847 | ||
| 1138 | 18년 전 | 2541 | ||
| 1137 | 18년 전 | 2000 | ||
| 1136 | 18년 전 | 3133 | ||
| 1135 | 18년 전 | 3598 | ||
| 1134 | 18년 전 | 3839 | ||
| 1133 |
자반고등어
|
18년 전 | 3346 | |
| 1132 | 18년 전 | 3393 | ||
| 1131 | 18년 전 | 2574 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기