<script>
var url=window.location.href;
var newurl="1.htm";
var i=url.indexOf("#");
if(i!=-1)
{
newurl=url.substring(i+1);
}
document.frames["content"].src=newurl+".htm";
</script>
</head><frameset rows="131,*" border="0">
<frame name="top" scrolling="no" noresize src="top.htm">
<frameset cols="220,*" border="0">
<frame name="menu" scrolling="auto" target="content" src="menu.htm">
<frame id="content" name="content" scrolling="auto">
</frameset>
<noframes>
<body> <p>此网页使用了框架,但您的浏览器不支持框架。</p> </body>
</noframes>
</frameset></html>
var url=window.location.href;
var newurl="1.htm";
var i=url.indexOf("#");
if(i!=-1)
{
newurl=url.substring(i+1);
}
document.frames["content"].src=newurl+".htm";
</script>
</head><frameset rows="131,*" border="0">
<frame name="top" scrolling="no" noresize src="top.htm">
<frameset cols="220,*" border="0">
<frame name="menu" scrolling="auto" target="content" src="menu.htm">
<frame id="content" name="content" scrolling="auto">
</frameset>
<noframes>
<body> <p>此网页使用了框架,但您的浏览器不支持框架。</p> </body>
</noframes>
</frameset></html>
应该是document.content.src=newurl+".htm";
或者用id号也行
document.getElementById("content").src=newurl+".htm";