框架页面跳转
作者:cmscn 日期:2007-06-05
<script language="javascript">
function window.onload()
{
var div = window.parent.document.getElementById('div1');
div.style.height=document.body.scrollHeight+20;
}
</script>
<A href="javascript:showIt('北京')">
北京</A>
<script language="javascript">
function showIt(id)
{
var ifrm = window.parent.document.getElementById('ifrmInfo');
ifrm.src='/article/article_list.asp?action=search&c_id=22&sea_type=province&sea_term=all&keyword='+id;
}
</script>
双跳转
<script language="javascript">
function showIt(id)
{
var ifrm = window.parent.document.getElementById('ifrmInfo');
ifrm.src='/article/article_list.asp?action=search&c_id=22&sea_type=province&sea_term=all&keyword='+id;
window.location.href='IndexCity.aspx?Pid='+id+'&Fid=1'; }
</script>
框架
<DIV id=div1 style="WIDTH: 100%" align=left><IFRAME id=ifrmCity
align=left src="/skin/img/Area.htm" frameBorder=no width=180
scrolling=no height="100%"></IFRAME></DIV></TD>
<TD vAlign=top width=4></TD>
<TD vAlign=top height=150>
<DIV id=div2><IFRAME id=ifrmInfo src="/skin/img/ProvinceMap.htm"
frameBorder=no width="99%" scrolling=no
height="100%"></IFRAME></DIV>
演示:http://www.0935hy.cn
评论: 8 | 引用: 0 | 查看次数: 1106
发表评论