Kombinere 3 index filer til 1
Har 3 index filer, som jeg vil ha kombineret til 1 index fil..<html>
<head>
<title>Model Selection Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="G1900GE/contents/main.css">
<link rel="stylesheet" href="G1900GE/contents/menu.css">
<script language="JavaScript">
<!--
/*---------------------------------------------------------------------------------------------------*/
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
/*---------------------------------------------------------------------------------------------------*/
function mySelectMenu(typeValue){ // ¼Ö·¿¤Î¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤ò¾Ã¤·¤¿¤ê½Ð¤·¤¿¤ê
typeValue = ['DEFAULT','IMPREZA'];
document.selectNo.reset();
// document.Text.reset();
for(i = 0; i < typeValue.length; i++){
if(document.selectForm.selectName.value == typeValue[i]){
document.all.item(typeValue[i]).style.display = 'block';
}
else{
document.all.item(typeValue[i]).style.display = 'none';
}
}
}
/*---------------------------------------------------------------------------------------------------*/
function jumpIndex(formValue){ // ÁªÂò¤·¤¿¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤ÎÃͤ˽¾¤Ã¤ÆÈô¤Ö
formValue2 = document.selectForm.selectName.value;
formValue = eval('document.selectNo._'+formValue2+'.value;')
if((formValue2 == "DEFAULT")){
alert('Please select the model.');
}else if((formValue2 == 'IMPREZA') && (formValue == '2002MY')){
document.location.href = 'G1840GE/02IM_EU_EN.pdf';
}else if((formValue2 == 'IMPREZA') && (formValue == '2003MY')){
document.location.href = 'G1860GE/03IM_EU_EN.pdf';
}else if((formValue2 == 'IMPREZA') && (formValue == '2004MY')){
document.location.href = 'G1870GE/04IM_EU_EN.pdf';
}else if((formValue2 == 'IMPREZA') && (formValue == '2005MY')){
document.location.href = 'G1880GE/05IM_EU_EN.pdf';
}else if((formValue2 == 'IMPREZA') && (formValue == '2006MY')){
document.location.href = 'G1900GE/index.html';
}else{
alert('Please select the model year.');
}
}
/*---------------------------------------------------------------------------------------------------*/
function changeText(No){ // ȯÇäÆü¤òÁªÂò¤·¤¿¤È¤ ¤Ë´Þ¤Þ¤ì¤ë¼Ö·¿¤òɽ¼¨
_DEFAULT = ' ';
_IMPREZA_TypeA = 'TA-BL\nTA-BP\nUA-BL\nUA-BP\n';
_IMPREZA_TypeB = 'TA-BL\nTA-BP\nCBA-BL\nCBA-BP\n';
_IMPREZA_TypeC = 'TA-BL\nTA-BP\nCBA-BL\nCBA-BP\n';
if((No == '_DEFAULT')){
document.Text.myText.value = _DEFAULT;
}else if((No == '_IMPREZA') && (document.selectNo._IMPREZA.value == 'TypeA')){
document.Text.myText.value = _IMPREZA_TypeA;
}else if((No == '_IMPREZA') && (document.selectNo._IMPREZA.value == 'TypeB')){
document.Text.myText.value = _IMPREZA_TypeB;
}else if((No == '_IMPREZA') && (document.selectNo._IMPREZA.value == 'TypeC')){
document.Text.myText.value = _IMPREZA_TypeC;
}else{
document.Text.reset();
}
}
/*---------------------------------------------------------------------------------------------------*/
function openReadme(){ // readme¤ò³«¤¯¡Êreadme¥Ü¥¿¥ó¤ò²¡¤·¤¿»þ¡¢onload¤·¤¿»þ¶¦ÄÌ¡Ë
var rmWin;
if(rmWin != null){
rmWin.close();
}
rmWin = window.open('rm.html','newwin','width=730,height=400,toolbar=1,menubar=1,scrollbars=1');
rmWin.focus();
}
/*---------------------------------------------------------------------------------------------------*/
function resetForm(){ // onload¤·¤¿¤È¤ ¡¢³Æ¥Õ¥©¡¼¥à¤ÎÃͤò¥ê¥»¥Ã¥È
document.selectForm.reset();
document.selectNo.reset();
// document.Text.reset();
}
/*---------------------------------------------------------------------------------------------------*/
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="img/shima.gif" onload="openReadme();resetForm()">
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" height="100%">
<tr bgcolor="#FFFFFF" valign="top" align="center">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="text02" colspan="2">Model Selection Menu</td>
</tr>
<tr>
<td class="text03" colspan="2"><br>
Please select the model and model year, and click OK button.</td>
</tr>
<tr>
<td class="text03" align="right" width="680"><a href="java script:openReadme()" class="menu1">ReadMe</a></td>
<td class="text03" width="20"> </td>
</tr>
</table>
<br>
<br>
<table width="80%" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td class="line">
<table width="90%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="dots" width="30%">Model</td>
<td width="10%"> </td>
<td class="dots" width="50%">Model Year</td>
<td width="10%"> </td>
</tr>
<tr>
<td colspan="4" height="5"></td>
</tr>
<tr>
<td align="center">
<form name="selectForm">
<select name="selectName" onChange="mySelectMenu()">
<option value="DEFAULT"selected>Please select the model.</option>
<option value='IMPREZA'>IMPREZA</option>
</select>
</form>
</td>
<td class="text01"> </td>
<td align="center">
<form name="selectNo" >
<!-- Default -->
<table id="DEFAULT" style="display:block" width="100%">
<tr>
<td align="center">
<!--
<select name='_DEFAULT' onChange=changeText('_DEFAULT')>
-->
<select name='_DEFAULT'>
<option selected>Please select the model first.</option>
</select>
</td>
</tr>
</table>
<!-- Default -->
<!-- IMPREZA -->
<table id="IMPREZA" style="display:none" width="100%">
<tr>
<td align="center">
<!--
<select name='_IMPREZA' onChange=changeText('_IMPREZA')>
-->
<select name='_IMPREZA'>
<option selected>Please select the model year.</option>
<option value="2006MY">2006</option>
<option value="2005MY">2005</option>
<option value="2004MY">2004</option>
<option value="2003MY">2003</option>
<option value="2002MY">2002</option>
</select>
</td>
</tr>
</table>
<!-- IMPREZA -->
</form>
</td>
<td align="center" valign="top"><a href="java script:jumpIndex()" class="menu1">OK</a></td>
</tr>
<tr>
<td colspan="4" height="10"></td>
</tr>
<!--
<tr>
<td align="center"> </td>
<td align="center"> </td>
<td class="dots">°Ê²¼¤Î¼Ö·¿¤¬´Þ¤Þ¤ì¤Þ¤¹¡£</td>
<td align="center"> </td>
</tr>
-->
<tr>
<td colspan="4" height="5"></td>
</tr>
<!--
<tr>
<td align="center"> </td>
<td align="center"> </td>
<td align="center">
<form name="Text">
<textarea name="myText" rows="9" readonly></textarea>
</form>
</td>
<td align="center"> </td>
</tr>
-->
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>Model Selection Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="G2390GE/contents/main.css">
<link rel="stylesheet" href="G2390GE/contents/menu.css">
<script language="JavaScript">
<!--
/*---------------------------------------------------------------------------------------------------*/
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
/*---------------------------------------------------------------------------------------------------*/
function mySelectMenu(typeValue){ // ¼Ö·¿¤Î¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤ò¾Ã¤·¤¿¤ê½Ð¤·¤¿¤ê
typeValue = ['DEFAULT','LEGACY'];
document.selectNo.reset();
// document.Text.reset();
for(i = 0; i < typeValue.length; i++){
if(document.selectForm.selectName.value == typeValue[i]){
document.all.item(typeValue[i]).style.display = 'block';
}
else{
document.all.item(typeValue[i]).style.display = 'none';
}
}
}
/*---------------------------------------------------------------------------------------------------*/
function jumpIndex(formValue){ // ÁªÂò¤·¤¿¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤ÎÃͤ˽¾¤Ã¤ÆÈô¤Ö
formValue2 = document.selectForm.selectName.value;
formValue = eval('document.selectNo._'+formValue2+'.value;')
if((formValue2 == "DEFAULT")){
alert('Please select the model.');
}else if((formValue2 == 'LEGACY') && (formValue == '2004MY')){
document.location.href = 'G2320GE/04LE_EU_EN.pdf';
}else if((formValue2 == 'LEGACY') && (formValue == '2005MY')){
document.location.href = 'G2360GE/05LE_EU_EN.pdf';
}else if((formValue2 == 'LEGACY') && (formValue == '2006MY')){
document.location.href = 'G2390GE/index.html';
}else{
alert('Please select the model year.');
}
}
/*---------------------------------------------------------------------------------------------------*/
function changeText(No){ // ȯÇäÆü¤òÁªÂò¤·¤¿¤È¤ ¤Ë´Þ¤Þ¤ì¤ë¼Ö·¿¤òɽ¼¨
_DEFAULT = ' ';
_LEGACY_TypeA = 'TA-BL\nTA-BP\nUA-BL\nUA-BP\n';
_LEGACY_TypeB = 'TA-BL\nTA-BP\nCBA-BL\nCBA-BP\n';
_LEGACY_TypeC = 'TA-BL\nTA-BP\nCBA-BL\nCBA-BP\n';
if((No == '_DEFAULT')){
document.Text.myText.value = _DEFAULT;
}else if((No == '_LEGACY') && (document.selectNo._LEGACY.value == 'TypeA')){
document.Text.myText.value = _LEGACY_TypeA;
}else if((No == '_LEGACY') && (document.selectNo._LEGACY.value == 'TypeB')){
document.Text.myText.value = _LEGACY_TypeB;
}else if((No == '_LEGACY') && (document.selectNo._LEGACY.value == 'TypeC')){
document.Text.myText.value = _LEGACY_TypeC;
}else{
document.Text.reset();
}
}
/*---------------------------------------------------------------------------------------------------*/
function openReadme(){ // readme¤ò³«¤¯¡Êreadme¥Ü¥¿¥ó¤ò²¡¤·¤¿»þ¡¢onload¤·¤¿»þ¶¦ÄÌ¡Ë
var rmWin;
if(rmWin != null){
rmWin.close();
}
rmWin = window.open('rm.html','newwin','width=730,height=400,toolbar=1,menubar=1,scrollbars=1');
rmWin.focus();
}
/*---------------------------------------------------------------------------------------------------*/
function resetForm(){ // onload¤·¤¿¤È¤ ¡¢³Æ¥Õ¥©¡¼¥à¤ÎÃͤò¥ê¥»¥Ã¥È
document.selectForm.reset();
document.selectNo.reset();
// document.Text.reset();
}
/*---------------------------------------------------------------------------------------------------*/
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="img/shima.gif" onload="openReadme();resetForm()">
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" height="100%">
<tr bgcolor="#FFFFFF" valign="top" align="center">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="text02" colspan="2">Model Selection Menu</td>
</tr>
<tr>
<td class="text03" colspan="2"><br>
Please select the model and model year, and click OK button.</td>
</tr>
<tr>
<td class="text03" align="right" width="680"><a href="java script:openReadme()" class="menu1">ReadMe</a></td>
<td class="text03" width="20"> </td>
</tr>
</table>
<br>
<br>
<table width="80%" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td class="line">
<table width="90%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="dots" width="30%">Model</td>
<td width="10%"> </td>
<td class="dots" width="50%">Model Year</td>
<td width="10%"> </td>
</tr>
<tr>
<td colspan="4" height="5"></td>
</tr>
<tr>
<td align="center">
<form name="selectForm">
<select name="selectName" onChange="mySelectMenu()">
<option value="DEFAULT"selected>Please select the model.</option>
<option value='LEGACY'>LEGACY</option>
</select>
</form>
</td>
<td class="text01"> </td>
<td align="center">
<form name="selectNo" >
<!-- Default -->
<table id="DEFAULT" style="display:block" width="100%">
<tr>
<td align="center">
<!--
<select name='_DEFAULT' onChange=changeText('_DEFAULT')>
-->
<select name='_DEFAULT'>
<option selected>Please select the model first.</option>
</select>
</td>
</tr>
</table>
<!-- Default -->
<!-- LEGACY -->
<table id="LEGACY" style="display:none" width="100%">
<tr>
<td align="center">
<!--
<select name='_LEGACY' onChange=changeText('_LEGACY')>
-->
<select name='_LEGACY'>
<option selected>Please select the model year.</option>
<option value="2006MY">2006</option>
<option value="2005MY">2005</option>
<option value="2004MY">2004</option>
</select>
</td>
</tr>
</table>
<!-- LEGACY -->
</form>
</td>
<td align="center" valign="top"><a href="java script:jumpIndex()" class="menu1">OK</a></td>
</tr>
<tr>
<td colspan="4" height="10"></td>
</tr>
<!--
<tr>
<td align="center"> </td>
<td align="center"> </td>
<td class="dots">°Ê²¼¤Î¼Ö·¿¤¬´Þ¤Þ¤ì¤Þ¤¹¡£</td>
<td align="center"> </td>
</tr>
-->
<tr>
<td colspan="4" height="5"></td>
</tr>
<!--
<tr>
<td align="center"> </td>
<td align="center"> </td>
<td align="center">
<form name="Text">
<textarea name="myText" rows="9" readonly></textarea>
</form>
</td>
<td align="center"> </td>
</tr>
-->
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>Model Selection Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset="iso-8859-1">
<link rel="stylesheet" href="G8100GE/contents/main.css">
<link rel="stylesheet" href="G8100GE/contents/menu.css">
<script language="JavaScript">
<!--
/*---------------------------------------------------------------------------------------------------*/
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
/*---------------------------------------------------------------------------------------------------*/
function mySelectMenu(typeValue){ // ¼Ö·¿¤Î¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤ò¾Ã¤·¤¿¤ê½Ð¤·¤¿¤ê
typeValue = ['DEFAULT','FORESTER'];
document.selectNo.reset();
// document.Text.reset();
for(i = 0; i < typeValue.length; i++){
if(document.selectForm.selectName.value == typeValue[i]){
document.all.item(typeValue[i]).style.display = 'block';
}
else{
document.all.item(typeValue[i]).style.display = 'none';
}
}
}
/*---------------------------------------------------------------------------------------------------*/
function jumpIndex(formValue){ // ÁªÂò¤·¤¿¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤ÎÃͤ˽¾¤Ã¤ÆÈô¤Ö
formValue2 = document.selectForm.selectName.value;
formValue = eval('document.selectNo._'+formValue2+'.value;')
if((formValue2 == "DEFAULT")){
alert('Please select the model.');
}else if((formValue2 == 'FORESTER') && (formValue == '2003MY')){
document.location.href = 'G8070GE/03FO_EU_EN.pdf';
}else if((formValue2 == 'FORESTER') && (formValue == '2004MY')){
document.location.href = 'G8080GE/04FO_EU_EN.pdf';
}else if((formValue2 == 'FORESTER') && (formValue == '2005MY')){
document.location.href = 'G8090GE/05FO_EU_EN.pdf';
}else if((formValue2 == 'FORESTER') && (formValue == '2006MY')){
document.location.href = 'G8100GE/index.html';
}else{
alert('Please select the model year.');
}
}
/*---------------------------------------------------------------------------------------------------*/
function changeText(No){ // ȯÇäÆü¤òÁªÂò¤·¤¿¤È¤ ¤Ë´Þ¤Þ¤ì¤ë¼Ö·¿¤òɽ¼¨
_DEFAULT = ' ';
_FORESTER_TypeA = 'TA-BL\nTA-BP\nUA-BL\nUA-BP\n';
_FORESTER_TypeB = 'TA-BL\nTA-BP\nCBA-BL\nCBA-BP\n';
_FORESTER_TypeC = 'TA-BL\nTA-BP\nCBA-BL\nCBA-BP\n';
if((No == '_DEFAULT')){
document.Text.myText.value = _DEFAULT;
}else if((No == '_FORESTER') && (document.selectNo._FORESTER.value == 'TypeA')){
document.Text.myText.value = _FORESTER_TypeA;
}else if((No == '_FORESTER') && (document.selectNo._FORESTER.value == 'TypeB')){
document.Text.myText.value = _FORESTER_TypeB;
}else if((No == '_FORESTER') && (document.selectNo._FORESTER.value == 'TypeC')){
document.Text.myText.value = _FORESTER_TypeC;
}else{
document.Text.reset();
}
}
/*---------------------------------------------------------------------------------------------------*/
function openReadme(){ // readme¤ò³«¤¯¡Êreadme¥Ü¥¿¥ó¤ò²¡¤·¤¿»þ¡¢onload¤·¤¿»þ¶¦ÄÌ¡Ë
var rmWin;
if(rmWin != null){
rmWin.close();
}
rmWin = window.open('rm.html','newwin','width=730,height=400,toolbar=1,menubar=1,scrollbars=1');
rmWin.focus();
}
/*---------------------------------------------------------------------------------------------------*/
function resetForm(){ // onload¤·¤¿¤È¤ ¡¢³Æ¥Õ¥©¡¼¥à¤ÎÃͤò¥ê¥»¥Ã¥È
document.selectForm.reset();
document.selectNo.reset();
// document.Text.reset();
}
/*---------------------------------------------------------------------------------------------------*/
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="img/shima.gif" onload="openReadme();resetForm()">
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" height="100%">
<tr bgcolor="#FFFFFF" valign="top" align="center">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="text02" colspan="2">Model Selection Menu</td>
</tr>
<tr>
<td class="text03" colspan="2"><br>
Please select the model and model year, and click OK button.</td>
</tr>
<tr>
<td class="text03" align="right" width="680"><a href="java script:openReadme()" class="menu1">ReadMe</a></td>
<td class="text03" width="20"> </td>
</tr>
</table>
<br>
<br>
<table width="80%" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td class="line">
<table width="90%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="dots" width="30%">Model</td>
<td width="10%"> </td>
<td class="dots" width="50%">Model Year</td>
<td width="10%"> </td>
</tr>
<tr>
<td colspan="4" height="5"></td>
</tr>
<tr>
<td align="center">
<form name="selectForm">
<select name="selectName" onChange="mySelectMenu()">
<option value="DEFAULT"selected>Please select the model.</option>
<option value='FORESTER'>FORESTER</option>
</select>
</form>
</td>
<td class="text01"> </td>
<td align="center">
<form name="selectNo" >
<!-- Default -->
<table id="DEFAULT" style="display:block" width="100%">
<tr>
<td align="center">
<!--
<select name='_DEFAULT' onChange=changeText('_DEFAULT')>
-->
<select name='_DEFAULT'>
<option selected>Please select the model first.</option>
</select>
</td>
</tr>
</table>
<!-- Default -->
<!-- FORESTER -->
<table id="FORESTER" style="display:none" width="100%">
<tr>
<td align="center">
<!--
<select name='_FORESTER' onChange=changeText('_FORESTER')>
-->
<select name='_FORESTER'>
<option selected>Please select the model year.</option>
<option value="2006MY">2006</option>
<option value="2005MY">2005</option>
<option value="2004MY">2004</option>
<option value="2003MY">2003</option>
</select>
</td>
</tr>
</table>
<!-- FORESTER -->
</form>
</td>
<td align="center" valign="top"><a href="java script:jumpIndex()" class="menu1">OK</a></td>
</tr>
<tr>
<td colspan="4" height="10"></td>
</tr>
<!--
<tr>
<td align="center"> </td>
<td align="center"> </td>
<td class="dots">°Ê²¼¤Î¼Ö·¿¤¬´Þ¤Þ¤ì¤Þ¤¹¡£</td>
<td align="center"> </td>
</tr>
-->
<tr>
<td colspan="4" height="5"></td>
</tr>
<!--
<tr>
<td align="center"> </td>
<td align="center"> </td>
<td align="center">
<form name="Text">
<textarea name="myText" rows="9" readonly></textarea>
</form>
</td>
<td align="center"> </td>
</tr>
-->
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>