js 3 급 관련 메뉴 효과 인 스 턴 스

4712 단어
 
  




js






<br>var groups=document.isc.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("---Select2---"," "); <br>group[1][0]=new Option("Now Select This One"," "); <br>group[1][1]=new Option("JavaScript","47"); <br>group[1][2]=new Option("DHTML","46"); <br>group[1][3]=new Option("CGI","45"); <br>group[2][0]=new Option("Now Select This One"," "); <br>group[2][1]=new Option("General News","115"); <br>group[2][2]=new Option("Technology News","116"); <br>var temp=document.isc.stage2 <br>function redirect(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>redirect1(0) <br>} <br>var secondGroups=document.isc.stage2.options.length <br>var secondGroup=new Array(groups) <br>for (I=0; I<groups; I++) { <br>secondGroup[I]=new Array(group[I].length) <br>for (j=0; j<group[I].length; j++) { <br>secondGroup[I][j]=new Array() }} <br>secondGroup[0][0][0]=new Option("---Select 3---"," "); <br>secondGroup[1][0][0]=new Option("---Select 3---"," "); <br>secondGroup[1][1][0]=new Option("Now Select This One"," "); <br>secondGroup[1][1][1]=new Option("Website Abstraction","http://wsabstract"); <br>secondGroup[1][1][2]=new Option("JavaScript for the non programmer","http://webteacher/javascript/"); <br>secondGroup[1][1][3]=new Option("Java-Scripts.net","//www.jb51.net"); <br>secondGroup[1][2][0]=new Option("Now Select This One"," "); <br>secondGroup[1][2][1]=new Option("Dynamic Drive","dynamicdrive"); <br>secondGroup[1][2][2]=new Option("Beginner's Guide to DHTML","geocities/ResearchTriangle/Facility/4490/"); <br>secondGroup[1][2][3]=new Option("Web Coder","http://sc.jb51.net/"); <br>secondGroup[1][3][0]=new Option("Now Select This One"," "); <br>secondGroup[1][3][1]=new Option("CGI Resources","cgi-resources"); <br>secondGroup[1][3][2]=new Option("Ada's Intro to CGI","http://play.jb51.net/"); <br>secondGroup[2][0][0]=new Option("---Select 3---"," "); <br>secondGroup[2][1][0]=new Option("Now Select This One"," "); <br>secondGroup[2][1][1]=new Option("CNN","cnn"); <br>secondGroup[2][1][2]=new Option("MSNBC","msnbc"); <br>secondGroup[2][1][3]=new Option("ABC News","abcnews"); <br>secondGroup[2][2][0]=new Option("Now Select A Page"," "); <br>secondGroup[2][2][1]=new Option("News","news"); <br>secondGroup[2][2][2]=new Option("Wired","wired"); <br>var temp1=document.isc.stage3 <br>function redirect1(y){ <br>for (m=temp1.options.length-1;m>0;m--) <br>temp1.options[m]=null <br>for (I=0;I<secondGroup[document.isc.example.options.selectedIndex][y].length;I++){ <br>temp1.options[I]=new Option(secondGroup[document.isc.example.options.selectedIndex][y][I].text,secondGroup[document.isc.example.options.selectedIndex][y][I].value) <br>} <br>temp1.options[0].selected=true <br>} <br>function redirect2(z){ <br>window.location=temp1[z].value <br>} <p></p> <p>//--> <br>



  
 

좋은 웹페이지 즐겨찾기