• JavaScript


    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8" />
            <title>窗口与框架</title>
            <script type="text/javascript">
                window.onload=iniall;
                     function iniall(){
                         for(var i=0;i<document.links.length;i++){
                             document.links[i].onclick=setcotant;
                             document.links[i].thisPage=i+1;
                         }
                     }
                     function setcotant(){
                         var newtext="<h1>you are now....."+this.thisPage+"<h1>"
                         document.getElementById("icotant").contentWindow
                                 .document.body.innerHTML=newtext;
                         return false;
                     }
            </script>
            <style type="text/css">
                body{
                    background-color: #fff;
                    height: 2000px;
                }
                iframe#icotant{
                    position: fixed;
                    border: 2px solid black;
                     400px;
                    height: 400px;
                    margin:200px;
                }
            </style>
        </head>
        <body>
            <iframe src="new_file104.html" name="icotant" id="icotant" > </iframe>
            <h1>A realy important page </h1>
            <h3>
            <a href="new_file105d.html">link1</a><br />
            <a href="new_file104.html">link2</a><br />
            <a href="new_file105d.html">link3</a>
            </h3>
        </body>
    </html>

  • 相关阅读:
    iOS UI(布局)约束是什么?view1.attr1 = view2.attr2 * multiplier + constant
    编程范式-声明式编程
    平庸的投资人和优秀的投资人差在哪儿
    编程语言的发展趋势及未来方向
    再读:编程语言的发展趋势及未来方向
    编程语言的发展趋势:声明式动态并发
    命令式编程与声明式编程
    声明式(编程)语言是解释型语言
    DSL-领域特定语言(英语:domain-specific language、DSL)
    声明式编程
  • 原文地址:https://www.cnblogs.com/webph/p/5107632.html
Copyright © 2020-2023  润新知