框架页面跳转


<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

文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: 框架
相关日志:
评论: 8 | 引用: 0 | 查看次数: 1106
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 20 字 | UBB代码 关闭 | [img]标签 关闭