******************javascript跳转图片更替************************
<html>
<head>
<script language = "javascript">
function addAllArea(areaName)
{
if(areaName=="北")
{
document.getElementById('propic').src = "../propic/a0.gif";
}
else if(areaName=="南")
{
document.getElementById('propic').src = "../propic/a1.gif";
}
else if(areaName=="西")
{
document.getElementById('propic').src = "../propic/a2.gif";
}
</script>
</head>
<body>
<tr>
<td colspan="2" height="98" align="center" valign="top">
<img id="propic" src="../propic/a0.gif" width="252" height="98">
</td>
</tr>
</body>
</html>
****************javascript包含页面数据显示更替**********************
<html>
<head>
<script language = "javascript">
function addAllArea(areaName)
{
var space;
if(areaName=="北")
{
space="00001";
}
else if(areaName=="南")
{
space="00002";
}
else if(areaName=="西")
{
space="00003";
}
document.getElementById("include").src="includeforec.jsp?space="+space;
}
</head>
<body>
<tr>
<td height="98" colspan="2" align="center" valign="top" bordercolor="#F6E395">
<iframe id="include" width="252" height="98" scrolling="no" frameborder="0" src="includeforec.jsp?space=00001">
</iframe>
</td>
</tr>
</body>
</html>