//稍做修改,这样应该可以吧~<script>
//全局变量,用来保存当前显显示的对象的ID
var showId='0';
function show(cue)
{
var showObj=document.getElementById(showId);
if(showObj)
showObj.style.display='none';
document.getElementById(cue).style.display='';
showId=cue;
}
</script><a href='#' name=href1 onclick='show(0)'>北京</a>
<a href='#' name=href1 onclick='show(1)'>广州</a>
<a href='#' name=href1 onclick='show(2)'>杭州</a><table bgcolor=green style='display:none;' width=100% runat=server id=0><tr><td>北京</td></tr></table>
<table bgcolor=green style='display:none;' width=100% runat=server id=1><tr><td>广州</td></tr></table>
<table bgcolor=green style='display:none;' width=100% runat=server id=2><tr><td>杭州</td></tr></table>
//全局变量,用来保存当前显显示的对象的ID
var showId='0';
function show(cue)
{
var showObj=document.getElementById(showId);
if(showObj)
showObj.style.display='none';
document.getElementById(cue).style.display='';
showId=cue;
}
</script><a href='#' name=href1 onclick='show(0)'>北京</a>
<a href='#' name=href1 onclick='show(1)'>广州</a>
<a href='#' name=href1 onclick='show(2)'>杭州</a><table bgcolor=green style='display:none;' width=100% runat=server id=0><tr><td>北京</td></tr></table>
<table bgcolor=green style='display:none;' width=100% runat=server id=1><tr><td>广州</td></tr></table>
<table bgcolor=green style='display:none;' width=100% runat=server id=2><tr><td>杭州</td></tr></table>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货