<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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 330 |
prosper
|
20년 전 | 2287 | |
| 329 |
prosper
|
20년 전 | 1917 | |
| 328 |
prosper
|
20년 전 | 1711 | |
| 327 | 20년 전 | 3777 | ||
| 326 | 20년 전 | 4865 | ||
| 325 |
hwatta
|
20년 전 | 2493 | |
| 324 |
|
20년 전 | 3150 | |
| 323 | 20년 전 | 5875 | ||
| 322 |
hwatta
|
20년 전 | 2856 | |
| 321 |
hwatta
|
20년 전 | 2329 | |
| 320 |
yesmoa
|
20년 전 | 4581 | |
| 319 | 20년 전 | 2694 | ||
| 318 | 20년 전 | 2244 | ||
| 317 |
kyodon
|
20년 전 | 2765 | |
| 316 | 20년 전 | 2588 | ||
| 315 |
|
20년 전 | 2890 | |
| 314 |
|
20년 전 | 3347 | |
| 313 |
|
20년 전 | 2653 | |
| 312 |
yesmoa
|
20년 전 | 4730 | |
| 311 | 20년 전 | 3286 | ||
| 310 |
홀로남은자
|
20년 전 | 4574 | |
| 309 | 20년 전 | 3011 | ||
| 308 | 20년 전 | 4145 | ||
| 307 | 20년 전 | 4380 | ||
| 306 | 20년 전 | 7042 | ||
| 305 | 20년 전 | 3877 | ||
| 304 | 20년 전 | 2776 | ||
| 303 |
크리스탈처럼
|
20년 전 | 4414 | |
| 302 | 20년 전 | 2215 | ||
| 301 |
|
20년 전 | 4332 | |
| 300 | 20년 전 | 3819 | ||
| 299 | 20년 전 | 2636 | ||
| 298 | 20년 전 | 4846 | ||
| 297 |
|
20년 전 | 2535 | |
| 296 | 20년 전 | 4541 | ||
| 295 | 20년 전 | 3573 | ||
| 294 | 20년 전 | 3596 | ||
| 293 | 20년 전 | 3824 | ||
| 292 | 20년 전 | 3220 | ||
| 291 |
yesmoa
|
20년 전 | 5960 | |
| 290 | 20년 전 | 2947 | ||
| 289 | 20년 전 | 5870 | ||
| 288 |
|
20년 전 | 2385 | |
| 287 |
|
20년 전 | 1818 | |
| 286 |
|
20년 전 | 2157 | |
| 285 |
|
20년 전 | 3546 | |
| 284 |
|
20년 전 | 2042 | |
| 283 |
|
20년 전 | 4406 | |
| 282 | 20년 전 | 3385 | ||
| 281 |
|
20년 전 | 2218 | |
| 280 |
|
20년 전 | 7817 | |
| 279 | 20년 전 | 5567 | ||
| 278 | 20년 전 | 3003 | ||
| 277 |
|
20년 전 | 5577 | |
| 276 | 20년 전 | 2367 | ||
| 275 | 20년 전 | 2623 | ||
| 274 | 20년 전 | 2403 | ||
| 273 | 20년 전 | 2237 | ||
| 272 | 20년 전 | 2164 | ||
| 271 | 20년 전 | 2625 | ||
| 270 | 20년 전 | 2675 | ||
| 269 | 20년 전 | 2516 | ||
| 268 | 20년 전 | 2700 | ||
| 267 | 20년 전 | 2382 | ||
| 266 | 20년 전 | 2575 | ||
| 265 | 20년 전 | 3517 | ||
| 264 |
|
20년 전 | 5379 | |
| 263 |
|
20년 전 | 3742 | |
| 262 | 20년 전 | 3202 | ||
| 261 |
허저비
|
20년 전 | 5947 | |
| 260 |
|
20년 전 | 5724 | |
| 259 | 20년 전 | 4148 | ||
| 258 | 20년 전 | 2384 | ||
| 257 | 20년 전 | 3206 | ||
| 256 | 20년 전 | 1918 | ||
| 255 | 20년 전 | 1587 | ||
| 254 | 20년 전 | 3158 | ||
| 253 | 20년 전 | 3551 | ||
| 252 | 20년 전 | 5136 | ||
| 251 | 20년 전 | 5828 | ||
| 250 | 20년 전 | 3687 | ||
| 249 | 20년 전 | 5033 | ||
| 248 | 20년 전 | 3302 | ||
| 247 | 20년 전 | 3659 | ||
| 246 |
|
20년 전 | 7966 | |
| 245 |
|
20년 전 | 5928 | |
| 244 | 20년 전 | 4498 | ||
| 243 |
|
20년 전 | 4077 | |
| 242 | 20년 전 | 2808 | ||
| 241 | 20년 전 | 2754 | ||
| 240 | 20년 전 | 2390 | ||
| 239 | 20년 전 | 1679 | ||
| 238 |
아우겐나이스
|
20년 전 | 2285 | |
| 237 |
email
|
20년 전 | 3700 | |
| 236 | 20년 전 | 4183 | ||
| 235 | 20년 전 | 10476 | ||
| 234 | 20년 전 | 5084 | ||
| 233 | 20년 전 | 3387 | ||
| 232 | 20년 전 | 3228 | ||
| 231 | 20년 전 | 3871 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기