<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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1930 | 17년 전 | 2998 | ||
| 1929 | 17년 전 | 1873 | ||
| 1928 | 17년 전 | 3987 | ||
| 1927 | 17년 전 | 1401 | ||
| 1926 |
지엔소프트
|
17년 전 | 1119 | |
| 1925 |
보드타는찌니
|
17년 전 | 1229 | |
| 1924 |
choijinhee
|
17년 전 | 1116 | |
| 1923 | 17년 전 | 1372 | ||
| 1922 | 17년 전 | 1737 | ||
| 1921 | 17년 전 | 2335 | ||
| 1920 | 17년 전 | 2412 | ||
| 1919 | 17년 전 | 1415 | ||
| 1918 | 17년 전 | 1163 | ||
| 1917 | 17년 전 | 2431 | ||
| 1916 | 17년 전 | 2858 | ||
| 1915 |
|
17년 전 | 3224 | |
| 1914 | 17년 전 | 3166 | ||
| 1913 | 17년 전 | 2326 | ||
| 1912 | 17년 전 | 3747 | ||
| 1911 | 17년 전 | 3176 | ||
| 1910 | 17년 전 | 5496 | ||
| 1909 | 17년 전 | 2648 | ||
| 1908 | 17년 전 | 1850 | ||
| 1907 | 17년 전 | 1932 | ||
| 1906 | 17년 전 | 1770 | ||
| 1905 | 17년 전 | 1699 | ||
| 1904 | 17년 전 | 2762 | ||
| 1903 | 17년 전 | 1882 | ||
| 1902 | 17년 전 | 1571 | ||
| 1901 | 17년 전 | 2062 | ||
| 1900 |
stuartkim
|
17년 전 | 1127 | |
| 1899 | 17년 전 | 1658 | ||
| 1898 | 17년 전 | 2872 | ||
| 1897 | 17년 전 | 2111 | ||
| 1896 | 17년 전 | 1803 | ||
| 1895 | 17년 전 | 2022 | ||
| 1894 | 17년 전 | 1310 | ||
| 1893 | 17년 전 | 1706 | ||
| 1892 | 17년 전 | 1206 | ||
| 1891 | 17년 전 | 1769 | ||
| 1890 | 17년 전 | 1795 | ||
| 1889 | 17년 전 | 1034 | ||
| 1888 | 17년 전 | 3134 | ||
| 1887 | 17년 전 | 4309 | ||
| 1886 | 17년 전 | 2453 | ||
| 1885 | 17년 전 | 7456 | ||
| 1884 | 17년 전 | 3824 | ||
| 1883 | 17년 전 | 4154 | ||
| 1882 | 17년 전 | 2415 | ||
| 1881 | 17년 전 | 2878 | ||
| 1880 | 17년 전 | 3626 | ||
| 1879 | 17년 전 | 3997 | ||
| 1878 | 17년 전 | 3159 | ||
| 1877 | 17년 전 | 3141 | ||
| 1876 | 17년 전 | 3289 | ||
| 1875 | 17년 전 | 2456 | ||
| 1874 | 17년 전 | 2054 | ||
| 1873 | 17년 전 | 3099 | ||
| 1872 | 17년 전 | 3248 | ||
| 1871 | 17년 전 | 4604 | ||
| 1870 | 17년 전 | 1577 | ||
| 1869 | 17년 전 | 2610 | ||
| 1868 | 17년 전 | 2686 | ||
| 1867 | 17년 전 | 1895 | ||
| 1866 | 17년 전 | 2213 | ||
| 1865 | 17년 전 | 1826 | ||
| 1864 | 17년 전 | 2364 | ||
| 1863 | 17년 전 | 3766 | ||
| 1862 | 17년 전 | 3883 | ||
| 1861 | 17년 전 | 2077 | ||
| 1860 | 17년 전 | 1352 | ||
| 1859 | 17년 전 | 1490 | ||
| 1858 |
|
17년 전 | 1635 | |
| 1857 | 17년 전 | 1621 | ||
| 1856 |
보드타는찌니
|
17년 전 | 1382 | |
| 1855 | 17년 전 | 1524 | ||
| 1854 |
|
17년 전 | 1343 | |
| 1853 | 17년 전 | 1834 | ||
| 1852 | 17년 전 | 2740 | ||
| 1851 | 17년 전 | 1837 | ||
| 1850 |
|
17년 전 | 1388 | |
| 1849 |
|
17년 전 | 1672 | |
| 1848 |
|
17년 전 | 2318 | |
| 1847 | 17년 전 | 1939 | ||
| 1846 |
은사시나무
|
17년 전 | 1256 | |
| 1845 |
갈색야생마
|
17년 전 | 5895 | |
| 1844 |
갈색야생마
|
17년 전 | 3278 | |
| 1843 |
갈색야생마
|
17년 전 | 3173 | |
| 1842 |
갈색야생마
|
17년 전 | 2589 | |
| 1841 |
갈색야생마
|
17년 전 | 2769 | |
| 1840 |
갈색야생마
|
17년 전 | 2718 | |
| 1839 |
갈색야생마
|
17년 전 | 3222 | |
| 1838 |
갈색야생마
|
17년 전 | 2350 | |
| 1837 |
갈색야생마
|
17년 전 | 2468 | |
| 1836 |
갈색야생마
|
17년 전 | 2530 | |
| 1835 |
갈색야생마
|
17년 전 | 2519 | |
| 1834 |
갈색야생마
|
17년 전 | 2656 | |
| 1833 |
갈색야생마
|
17년 전 | 3180 | |
| 1832 |
갈색야생마
|
17년 전 | 2696 | |
| 1831 |
갈색야생마
|
17년 전 | 1424 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기