开元食味
德国频道
查看: 1093|回复: 1
打印 上一主题 下一主题

过期,请删

[复制链接]
跳转到指定楼层
1#
发表于 9.11.2007 14:53:13 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
即时机票
本帖最后由 bond 于 21.3.2010 18:33 编辑

过期,请删

test.rar

550 Bytes, 下载次数: 68

2#
发表于 10.11.2007 07:13:59 | 只看该作者
子网页中加入(测试通过):
  1.   <script   type="text/javascript">  
  2.   <!--  
  3.   function   iframeAutoFit()  
  4.   {  
  5.   var   ex;  
  6.   try  
  7.   {  
  8.   if(window!=parent)  
  9.   {  
  10.   var   a   =   parent.document.getElementsByTagName("IFRAME");  
  11.   for(var   i=0;   i<a.length;   i++)   //author:meizz  
  12.   {  
  13.   if(a[i].contentWindow==window)  
  14.   {  
  15.   var   h1=0,   h2=0;  
  16.   if(document.documentElement&&document.documentElement.scrollHeight)  
  17.   {  
  18.   h1=document.documentElement.scrollHeight;  
  19.   }  
  20.   if(document.body)   h2=document.body.scrollHeight;  
  21.    
  22.   var   h=Math.max(h1,   h2);  
  23.   if(document.all)   {h   +=   4;}  
  24.   if(window.opera)   {h   +=   1;}  
  25.   a[i].style.height   =   h   +"px";  
  26.   }  
  27.   }  
  28.   }  
  29.   }  
  30.   catch   (ex){}  
  31.   }  
  32.   if(document.attachEvent)  
  33.   {  
  34.   window.attachEvent("onload",   iframeAutoFit);  
  35.   window.attachEvent("onresize",   iframeAutoFit);  
  36.   }  
  37.   else  
  38.   {  
  39.   window.addEventListener('load',   iframeAutoFit,   false);  
  40.   window.addEventListener('resize',   iframeAutoFit,   false);  
  41.   }  
  42.   //-->  
  43.   </script>
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

站点信息

站点统计| 举报| Archiver| 手机版| 小黑屋

Powered by Discuz! X3.2 © 2001-2014 Comsenz Inc.

GMT+1, 25.9.2024 22:14

关于我们|Apps

() 开元网

快速回复 返回顶部 返回列表