| [ CnUnix ] in KIDS 글 쓴 이(By): guest (guest) <211.199.37.28> 날 짜 (Date): 2002년 10월 1일 화요일 오후 03시 15분 36초 제 목(Title): Re: HTML FORM에서 image button. <script> function myform(name) { document.write('<form name="'+name+'" action="index.cgi" onsubmit=do_submit("OK)>'); document.write('<input type=hidden choice="undef" >'); document.write('<a href=javascript:do_submit("first") >'); document.write('<img src="image/first.jpg" alt="First Choice" border=0 > </a>'); document.write('<a href=javascript:do_submit("second") >'); document.write('<img src="image/second.jpg" alt="Second Choice" border=0 > </a>'); document.write('</form>'); } myform("testform") </script> 머리가 굳어서 이런 허접한 방법밖에 -_- 필요한만큼 arg를 더 받으면 원하는 형태가 나올테니.. |