<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!-- Header begin -->
<html>
<head>
<Script
Language="JavaScript">
<!--
function
getItem()
{
var value =SelTest.options[SelTest.selectedIndex].value;
alert(value);
if(value == 1)
{
document.getElementByIdx("select_table1").style.display = "inline";
document.getElementByIdx("select_table2").style.display = "none";
}
if(value == 2)
{
document.getElementByIdx("select_table2").style.display = "inline";
document.getElementByIdx("select_table1").style.display = "none";
}
}
-->
</Script>
<Select
name="SelTest"
οnchange="getItem()">
<option
value="">
</Option>
<option
value="1">1</Option>
<option
value="2">2</Option>
</Select>
<html>
<head>
<Script
<table id = "select_table1" width = "100" border = "0" cellspacing = "0" cellpadding = "0" style = "display:inline">
<tr>
<td bgcolor = "#aabbcc" >table 1</td>
<tr>
</table>
<table id = "select_table2" width = "100" border = "0" cellspacing = "0" cellpadding = "0" style = "display:none">
<tr>
<td bgcolor = "#aabbcc" >table 2</td>
<tr>
</table>
</body>
</html>
<tr>
<td bgcolor = "#aabbcc" >table 1</td>
<tr>
</table>
<table id = "select_table2" width = "100" border = "0" cellspacing = "0" cellpadding = "0" style = "display:none">
<tr>
<td bgcolor = "#aabbcc" >table 2</td>
<tr>
</table>
</body>
</html>