Apq.aspx

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script type="text/jscript">
window.Apq$main = true; // 申明为主框架页
</script>

<script src="Script/_Config.js" type="text/jscript"></script>

<script type="text/jscript">
/// 更新标题
function main_onreadystatechange()
{
 var main = document.getElementById( "main" );
 if( main.readyState == "complete" )
 {
  // 这里不能是以下语句
//  document.title = main.document.title;
  setTimeout( "document.title = main.document.title", 0 );
 }
}

function document_onreadystatechange()
{
 if( document.readyState == "complete" )
 {
  // 取消该事件
  document.onreadystatechange = function(){};
  
  Apq_Init();
  
  // 这里不能使用 inline 的方式定义
  var main = document.getElementById( "main" );
  main.onreadystatechange = main_onreadystatechange;
  
  // 打开起始页面
  main.src = Apq$Config.Home;
 }
}

document.onreadystatechange = document_onreadystatechange;
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<frameset>
 <frame id="main" frameborder="no" height="100%" width="100%" />
</frameset>
</html>

posted @ 2006-06-14 10:26  Amwpfiqvy  阅读(196)  评论(0编辑  收藏  举报