<div class="codetitle"> <span><a style="CURSOR: pointer" data="82726" class="copybut" id="copybut82726" onclick="doCopy('code82726')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code82726"> <br> <!DOCTYPE html PUBLIC "-//W3C/ /DTD XHTML 1.0 전환//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br><html xmlns="http://www.w3 .org/ 1999/xhtml"> <br><head> <br><meta http-equiv="Content-Type" content="text/html;charset=gb2312" /> <br>< title>double 컨텍스트 메뉴 선택<BR><body> <BR><form name="doublecombo"> <BR><BR>< 이름 선택 ="example" size="1" onChange="redirect(this.options.selectedIndex)"> <br><option>특수 효과 코드</option> <br><option>웹페이지 언어< /option> <br><option>소프트웨어 튜토리얼</option> <br></select> <br><select name="stage2" size="1"> " /texiao/shubiao">마우스 클래스</option> <br><option value="/texiao/chuangkou">창 클래스</option> <br><option value="/texiao/daohang " >탐색 클래스</option> <br></select> <br><input type="button" name="test" value="Go!" <BR></p> <br><script> <br><!-- <BR>var groups=document.doublecombo.example.options.length <BR>var group=new Array(groups ) <BR>for (I=0; I<groups; I ) <BR>group[I]=new Array() <BR>group[0][0]=new Option("Mouse Class","/texiao /shubiao ") <BR>group[0][1]=new Option("창 클래스","/texiao/chuangkou") <BR>group[0][2]=new Option("탐색 클래스"," /texiao /daohang") <BR>group[1][0]=new Option("ASP","/yuyan/asp") <BR>group[1][1]=new Option("PHP"," /yuyan /php") <BR>group[1][2]=new Option("JSP","/yuyan/jsp") <BR>group[2][0]=new Option("Dreamweaver"," /ruanjian /Dreamweaver") <BR>group[2][1]=new Option("Fireworks","/ruanjian/Fireworks") <BR>group[2][2]=new Option("Flash"," /ruanjian /Flash") <BR>group[2][3]=new Option("Photoshop","/ruanjian/Photoshop") <BR>var temp=document.doublecombo.stage2 <BR>기능 리디렉션(x) { <BR>for (m=temp.options.length-1;m>0;m--) <br>temp.options[m]=null <br>for (I=0;I<group[x] .length ;I ){ <BR>temp.options[I]=new Option(group[x][I].text,group[x][I].value) <BR>} <BR>temp.options[ 0] .selected=true <BR>} <BR>함수 go(){ <BR>location=temp.options[temp.selectedIndex].value <BR>} <BR>//--> <br>< ;/ 스크립트> <br></form> <br></body> <br></html></td><br> </tr><br></table><br> <br> </div>