<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년 전 | 2005 | |
| 1229 |
|
18년 전 | 2940 | |
| 1228 |
|
18년 전 | 2629 | |
| 1227 | 18년 전 | 2928 | ||
| 1226 | 18년 전 | 2362 | ||
| 1225 |
|
18년 전 | 2431 | |
| 1224 | 18년 전 | 2739 | ||
| 1223 |
|
18년 전 | 3986 | |
| 1222 |
mixdesign
|
18년 전 | 2632 | |
| 1221 |
|
18년 전 | 2746 | |
| 1220 | 18년 전 | 3207 | ||
| 1219 | 18년 전 | 2912 | ||
| 1218 | 18년 전 | 2111 | ||
| 1217 |
|
18년 전 | 2553 | |
| 1216 | 18년 전 | 2567 | ||
| 1215 |
mixdesign
|
18년 전 | 4043 | |
| 1214 |
|
18년 전 | 4787 | |
| 1213 | 18년 전 | 2318 | ||
| 1212 |
mixdesign
|
18년 전 | 2495 | |
| 1211 |
|
18년 전 | 2425 | |
| 1210 | 18년 전 | 3755 | ||
| 1209 |
mixdesign
|
18년 전 | 2373 | |
| 1208 |
mixdesign
|
18년 전 | 2378 | |
| 1207 |
mixdesign
|
18년 전 | 1720 | |
| 1206 |
mixdesign
|
18년 전 | 2003 | |
| 1205 |
mixdesign
|
18년 전 | 2699 | |
| 1204 |
mixdesign
|
18년 전 | 3579 | |
| 1203 | 18년 전 | 3091 | ||
| 1202 | 18년 전 | 2971 | ||
| 1201 | 18년 전 | 2033 | ||
| 1200 | 18년 전 | 4127 | ||
| 1199 | 18년 전 | 2167 | ||
| 1198 | 18년 전 | 4194 | ||
| 1197 | 18년 전 | 2504 | ||
| 1196 | 18년 전 | 2357 | ||
| 1195 |
|
18년 전 | 3462 | |
| 1194 | 18년 전 | 2237 | ||
| 1193 | 18년 전 | 2151 | ||
| 1192 | 18년 전 | 3272 | ||
| 1191 | 18년 전 | 3957 | ||
| 1190 | 18년 전 | 2221 | ||
| 1189 |
|
18년 전 | 2358 | |
| 1188 |
|
18년 전 | 3825 | |
| 1187 | 18년 전 | 2708 | ||
| 1186 | 18년 전 | 3365 | ||
| 1185 | 18년 전 | 2775 | ||
| 1184 | 18년 전 | 1664 | ||
| 1183 | 18년 전 | 2134 | ||
| 1182 | 18년 전 | 3702 | ||
| 1181 |
mermaid
|
18년 전 | 2918 | |
| 1180 | 18년 전 | 2971 | ||
| 1179 | 18년 전 | 3608 | ||
| 1178 | 18년 전 | 2168 | ||
| 1177 |
|
18년 전 | 2283 | |
| 1176 | 18년 전 | 3175 | ||
| 1175 | 18년 전 | 1872 | ||
| 1174 |
|
18년 전 | 2230 | |
| 1173 |
|
18년 전 | 2528 | |
| 1172 | 18년 전 | 1777 | ||
| 1171 | 18년 전 | 2104 | ||
| 1170 | 18년 전 | 1989 | ||
| 1169 | 18년 전 | 2506 | ||
| 1168 | 18년 전 | 1927 | ||
| 1167 | 18년 전 | 1722 | ||
| 1166 | 18년 전 | 1749 | ||
| 1165 | 18년 전 | 1727 | ||
| 1164 | 18년 전 | 2783 | ||
| 1163 | 18년 전 | 1559 | ||
| 1162 |
|
18년 전 | 5678 | |
| 1161 |
이걸~어쩌나~
|
18년 전 | 2401 | |
| 1160 | 18년 전 | 1669 | ||
| 1159 | 18년 전 | 4702 | ||
| 1158 | 18년 전 | 2052 | ||
| 1157 | 18년 전 | 4842 | ||
| 1156 | 18년 전 | 3190 | ||
| 1155 | 18년 전 | 2131 | ||
| 1154 | 18년 전 | 1832 | ||
| 1153 |
BEST79
|
18년 전 | 2110 | |
| 1152 | 18년 전 | 1724 | ||
| 1151 | 18년 전 | 1840 | ||
| 1150 | 18년 전 | 1838 | ||
| 1149 |
inniskun
|
18년 전 | 2480 | |
| 1148 |
|
18년 전 | 3494 | |
| 1147 |
|
18년 전 | 5977 | |
| 1146 |
|
18년 전 | 3865 | |
| 1145 | 18년 전 | 3057 | ||
| 1144 | 18년 전 | 2137 | ||
| 1143 | 18년 전 | 2408 | ||
| 1142 | 18년 전 | 2197 | ||
| 1141 |
|
18년 전 | 2304 | |
| 1140 | 18년 전 | 2409 | ||
| 1139 | 18년 전 | 2846 | ||
| 1138 | 18년 전 | 2539 | ||
| 1137 | 18년 전 | 1999 | ||
| 1136 | 18년 전 | 3129 | ||
| 1135 | 18년 전 | 3596 | ||
| 1134 | 18년 전 | 3835 | ||
| 1133 |
자반고등어
|
18년 전 | 3342 | |
| 1132 | 18년 전 | 3390 | ||
| 1131 | 18년 전 | 2567 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기