七郎's JavaBlog

          草木竹石皆可為劒。至人之用人若鏡,不將不迎,應而不藏,故能勝物而不傷。
          posts - 60, comments - 14, trackbacks - 0, articles - 0

          單iframe伸縮框架

          Posted on 2007-07-27 17:24 七郎歸來 閱讀(418) 評論(0)  編輯  收藏

          <base href="<?xml version="1.0" encoding="gb2312"?>
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
          <html xmlns="<head>
          <title>DWMX Tutor --- A Simple Menu</title>
          <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
          <script>// Example: obj = findObj("image1");
          function findObj(theObj, theDoc)
          {
            var p, i, foundObj;
           
            if(!theDoc) theDoc = document;
            if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
            {
              theDoc = parent.frames[theObj.substring(p+1)].document;
              theObj = theObj.substring(0,p);
            }
            if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
            for (i=0; !foundObj && i < theDoc.forms.length; i++)
              foundObj = theDoc.forms[i][theObj];
            for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
              foundObj = findObj(theObj,theDoc.layers[i].document);
            if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
           
            return foundObj;
          }
          </script>
          <style type="text/css">
          <!--
          .folder {
              font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
              font-size: 10px;
              background-image: url(e.gif);
              background-repeat: no-repeat;
              background-position: left;
              padding-left: 40px;
              cursor: hand;
          }
          .collapsedFolder {
              font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
              font-size: 10px;
              background-image: url(c.gif);
              background-repeat: no-repeat;
              background-position: left;
              padding-left: 40px;
              cursor: hand;
          }
          .submenu {
              padding-left: 18px;
          }
          .iefile {
              background-image: url(ie.gif);
              background-repeat: no-repeat;
              background-position: left;
              padding-left: 20px;
              font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
              font-size: 9px;
          }
          a {
              color: #003399;
              text-decoration: none;
              border: 1px solid #FFFFFF;
          }
          a:hover {
              color: #FF0000;
              background-color: #eeeeee;
              border: 1px solid #006699;
          }
          body {
              margin: 0px;
              background-color: buttonface;
              overflow: hidden;
              border: 0px;
          }
          .ctrlbar {
              border: 1px inset;
          }
          .explorer {
              background-color: #FFFFFF;
              border: 1px inset;
          }
          -->
          </style>
          <style type="text/css">
          <!--
          .ctbutton {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 8px;
              background-color: #eeeeee;
              border-width: 1px;
              width: 9px;
              height: 100px;
              margin-bottom: 100px;
          }
          -->
          </style>
          <base target="browserframe"/>
          </head>

          <body>
          <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="150" align="center" valign="top" class="explorer" id="menubar">
             
             </td>
              <td width="1" class="ctrlbar"><button class="ctbutton" onFocus="blur();" onMouseUp="with(findObj('menubar').style){display=display=='none'?'':'none';this.innerText=display=='none'?'>':'<'}" onMouseOver="this.style.backgroundColor='#ffffff'" onMouseOut="this.style.backgroundColor='#eeeeee'"><</button></td>
              <td class="explorer">
          <iframe name="browserframe" id="browserframe" width="100%" height="100%" scrolling="auto" frameborder="0">

          </iframe></td>
            </tr>
          </table>
          </body>
          </html>


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 德安县| 长葛市| 当阳市| 禄劝| 隆昌县| 宣威市| 油尖旺区| 无极县| 辽宁省| 呼图壁县| 乌鲁木齐市| 稷山县| 晋宁县| 渝中区| 瑞昌市| 右玉县| 蓝山县| 黄浦区| 长沙县| 吉木萨尔县| 临湘市| 大化| 连云港市| 永川市| 桓仁| 民和| 潢川县| 红河县| 越西县| 永川市| 玉溪市| 广安市| 金秀| 揭西县| 象州县| 延寿县| 富川| 长沙市| 镇宁| 儋州市| 秦皇岛市|