欢迎光临 Carey's blog  
首页  |  生活日志  |  CSS+DIV  |  JS日志  |  ASP收集  |  ASP.NET  |  DataBase    |  友情链接  
用户登陆
用户名:
密   码:
验证码: 
 

站点日历
73 2010 - 9 48
   1234
567891011
12131415161718
19202122232425
2627282930


站点统计

最新评论

日志搜索

 标题   内容

iis 服务器应用程序不可用 问题 SQLServer数据库管理的常用SQL语句
未知 Iframe自动适应高度   [ 日期:2008-06-24 ]   [ 来自:本站原创 ]

<script type=text/javascript> 
<!-- 
var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1] 
//extra height in px to add to iframe in FireFox 1.0+ browsers 
var FFextraHeight=getFFVersion>=0.1? 16 : 0 

function dyniframesize(down) { 
var pTar = null; 
if (document.getElementById){ 
pTar = document.getElementById(down); 

else{ 
eval('pTar = ' + down + ';'); 

if (pTar && !window.opera){ 
//begin resizing iframe 
pTar.style.display="block" 

if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){ 
//ns6 syntax 
pTar.height = pTar.contentDocument.body.offsetHeight+FFextraHeight; 

else if (pTar.Document && pTar.Document.body.scrollHeight){ 
//ie5+ syntax 
pTar.height = pTar.Document.body.scrollHeight; 




--> 
</script> 
</HEAD> 
<body onmousemove="closesubnav(event);"> 

<form id="Form1" method="post" runat="server"> 
<FONT face="宋体"> 
<uc1:Admin_header id="Admin_header1" runat="server"></uc1:Admin_header></FONT> 
<div id="pagecell1" > 
<iframe name="down" width="100%" frameborder="0" src="introduction.aspx" scrolling="no" id="down" onload="javascript:dyniframesize('down');" 
/> 
</div> 
</form> 

</body> 
</HTML>

Google
Web 本站

[ 阅读字体大小: ]  
暂时没有评论
发表评论 - 不要忘了输入验证码哦!
作者: 用户:  密码:   注册? 验证: 
评论:

禁止表情
禁止UBB
禁止图片
识别链接
识别关键字
表  情
 
CopyRight © nmdoor.com,2005-2006, All Rights Reserved 蒙ICP备06001305号
Processed in 0.046875 second(s) , 9 queries