www.gusucode.com > 仿51.com的php源码 1.1 > webin.php
<html> <head> <title>管理中心</title> </head> <body topmargin="0" leftmargin="0"> <script language="JavaScript"> document.domain ="www.wu-liao.com"; window.onerror=new Function("return true"); //调整子窗口高度 function init(){ if(parseFloat(navigator.appVersion.match(/MSIE (\d\.*\d*)/i)[1])<7){ var newHeight =window.frames["oMain"].document.body.scrollHeight; var newWidth =window.frames["oMain"].document.body.scrollWidth; //var newHeight =document.all.oMain.document.body.scrollHeight; //var newWidth =document.all.oMain.document.body.scrollWidth; } else { var newHeight =window.frames["oMain"].document.documentElement.scrollHeight; var newWidth =window.frames["oMain"].document.documentElement.scrollWidth; } //alert(newHeight); document.all("oMain").width =newWidth; document.all("oMain").height =newHeight; } /* function show_webim(){ var newHeight =0; var newWidth =0; try{ newHeight =window.frames["oWebIM"].document.body.scrollHeight; }catch(e){} if(newHeight<300) document.getElementById("oWebIM").height =22; else document.getElementById("oWebIM").height =newHeight; } function check_mainframe_status(){ try{ if(window.frames["oMain"].document.readyState!="complete"){ init(); } if(window.frames["oWebIM"].document.readyState!="complete"){ show_webim(); } }catch(e){} setTimeout("check_mainframe_status()",500); } function showNewMessage(User){ //接口 try{ if(window.frames["oWebIM"].ConnectStatus!="connected"){ alert("聊天功能在本窗口尚未开启!"); return false; } window.frames["oWebIM"].showNewMessage(User); }catch(e){ alert("聊天功能在本窗口尚未开启!"); } } function webImShowMessage(m){ return window.frames["oWebIM"].webImShowMessage(m); } function unicode2Chr(s){ return window.frames["oWebIM"].unicode2Chr(s); } window.onresize =init; check_mainframe_status();*/ </script> <iframe id="oWebIM" name="oWebIM" width="100%" height="22" src="/webtop.php" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe> <iframe onload="init()" id="oMain" name="oMain" width="100%" height="1000" src="<?php if($_GET["refer"]==null){ ?><?php echo "User/main.php"; ?><?php }else{?><?php echo $_GET["refer"]; ?><?php }?>" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe> <iframe id=oAliveFrame src='' name=oAliveFrame width=0 height=0 frameborder=0 ></iframe> </body> </html>