<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년 전 | 2004 | |
| 1229 |
|
18년 전 | 2939 | |
| 1228 |
|
18년 전 | 2629 | |
| 1227 | 18년 전 | 2926 | ||
| 1226 | 18년 전 | 2362 | ||
| 1225 |
|
18년 전 | 2430 | |
| 1224 | 18년 전 | 2737 | ||
| 1223 |
|
18년 전 | 3984 | |
| 1222 |
mixdesign
|
18년 전 | 2630 | |
| 1221 |
|
18년 전 | 2746 | |
| 1220 | 18년 전 | 3206 | ||
| 1219 | 18년 전 | 2909 | ||
| 1218 | 18년 전 | 2110 | ||
| 1217 |
|
18년 전 | 2552 | |
| 1216 | 18년 전 | 2566 | ||
| 1215 |
mixdesign
|
18년 전 | 4040 | |
| 1214 |
|
18년 전 | 4787 | |
| 1213 | 18년 전 | 2318 | ||
| 1212 |
mixdesign
|
18년 전 | 2493 | |
| 1211 |
|
18년 전 | 2424 | |
| 1210 | 18년 전 | 3755 | ||
| 1209 |
mixdesign
|
18년 전 | 2373 | |
| 1208 |
mixdesign
|
18년 전 | 2377 | |
| 1207 |
mixdesign
|
18년 전 | 1719 | |
| 1206 |
mixdesign
|
18년 전 | 2003 | |
| 1205 |
mixdesign
|
18년 전 | 2699 | |
| 1204 |
mixdesign
|
18년 전 | 3578 | |
| 1203 | 18년 전 | 3090 | ||
| 1202 | 18년 전 | 2971 | ||
| 1201 | 18년 전 | 2033 | ||
| 1200 | 18년 전 | 4126 | ||
| 1199 | 18년 전 | 2166 | ||
| 1198 | 18년 전 | 4193 | ||
| 1197 | 18년 전 | 2504 | ||
| 1196 | 18년 전 | 2356 | ||
| 1195 |
|
18년 전 | 3462 | |
| 1194 | 18년 전 | 2236 | ||
| 1193 | 18년 전 | 2151 | ||
| 1192 | 18년 전 | 3272 | ||
| 1191 | 18년 전 | 3956 | ||
| 1190 | 18년 전 | 2220 | ||
| 1189 |
|
18년 전 | 2354 | |
| 1188 |
|
18년 전 | 3823 | |
| 1187 | 18년 전 | 2707 | ||
| 1186 | 18년 전 | 3364 | ||
| 1185 | 18년 전 | 2774 | ||
| 1184 | 18년 전 | 1663 | ||
| 1183 | 18년 전 | 2131 | ||
| 1182 | 18년 전 | 3700 | ||
| 1181 |
mermaid
|
18년 전 | 2917 | |
| 1180 | 18년 전 | 2971 | ||
| 1179 | 18년 전 | 3607 | ||
| 1178 | 18년 전 | 2167 | ||
| 1177 |
|
18년 전 | 2283 | |
| 1176 | 18년 전 | 3173 | ||
| 1175 | 18년 전 | 1869 | ||
| 1174 |
|
18년 전 | 2228 | |
| 1173 |
|
18년 전 | 2527 | |
| 1172 | 18년 전 | 1776 | ||
| 1171 | 18년 전 | 2104 | ||
| 1170 | 18년 전 | 1989 | ||
| 1169 | 18년 전 | 2506 | ||
| 1168 | 18년 전 | 1924 | ||
| 1167 | 18년 전 | 1721 | ||
| 1166 | 18년 전 | 1746 | ||
| 1165 | 18년 전 | 1727 | ||
| 1164 | 18년 전 | 2781 | ||
| 1163 | 18년 전 | 1557 | ||
| 1162 |
|
18년 전 | 5677 | |
| 1161 |
이걸~어쩌나~
|
18년 전 | 2398 | |
| 1160 | 18년 전 | 1668 | ||
| 1159 | 18년 전 | 4702 | ||
| 1158 | 18년 전 | 2052 | ||
| 1157 | 18년 전 | 4842 | ||
| 1156 | 18년 전 | 3190 | ||
| 1155 | 18년 전 | 2131 | ||
| 1154 | 18년 전 | 1832 | ||
| 1153 |
BEST79
|
18년 전 | 2110 | |
| 1152 | 18년 전 | 1723 | ||
| 1151 | 18년 전 | 1839 | ||
| 1150 | 18년 전 | 1837 | ||
| 1149 |
inniskun
|
18년 전 | 2480 | |
| 1148 |
|
18년 전 | 3494 | |
| 1147 |
|
18년 전 | 5977 | |
| 1146 |
|
18년 전 | 3865 | |
| 1145 | 18년 전 | 3056 | ||
| 1144 | 18년 전 | 2137 | ||
| 1143 | 18년 전 | 2405 | ||
| 1142 | 18년 전 | 2197 | ||
| 1141 |
|
18년 전 | 2301 | |
| 1140 | 18년 전 | 2409 | ||
| 1139 | 18년 전 | 2846 | ||
| 1138 | 18년 전 | 2538 | ||
| 1137 | 18년 전 | 1994 | ||
| 1136 | 18년 전 | 3129 | ||
| 1135 | 18년 전 | 3595 | ||
| 1134 | 18년 전 | 3832 | ||
| 1133 |
자반고등어
|
18년 전 | 3340 | |
| 1132 | 18년 전 | 3389 | ||
| 1131 | 18년 전 | 2566 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기