七郎's JavaBlog

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

单iframe伸缩框架

Posted on 2007-07-27 17:24 七郎归来 阅读(411) 评论(0)  编辑  收藏

<base href="http://www.blueidea.com/articleimg/2003/09/804/">
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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>


只有注册用户登录后才能发表评论。


网站导航: