正在为你努力加载中........

点滴记录 分享
30
2012-10
首页 >> discuz >> dz安装进度显示代码

dz安装进度显示代码

<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Discuz!安装程序</title>
<style type="text/css">
body{ padding:5px 0; background:#FFF; text-align:center; }
body, td, input, textarea, select, button{ color:#666; font:12px/1.5 Verdana, Tahoma, Arial, 'Microsoft Yahei', 'Simsun', sans-serif; }
.container{ overflow:hidden; margin:0 auto; width:700px; height:auto !important;text-align:left; border:1px solid #B5CFD9; }
.main{ padding:20px 20px 0; background:#F7FBFE url(bg_repx.gif) repeat-x 0 -194px; }
.main h3{ margin:10px auto; width:75%; color:#6CA1B4; font-weight:700; }
#notice { overflow: hidden; margin: 20px; padding: 5px; height: 300px; border: 1px solid #B5CFD9; text-align: left; }
</style>
</head>

<body><div class="container">
<div class="main">
<script type="text/javascript">
function showmessage(message) {
 		 document.getElementById('notice').innerHTML += message + '<br/>';
		 document.getElementById('notice').scrollTop = 100;
}
</script>
<div id="notice"></div>
<?php
function showjsmessage($message) {
  echo '<script type="text/javascript">showmessage(\''.addslashes($message).' \');</script>'."\r\n";
  flush();
  ob_flush();
}
for ($i = 1; $i <= 50; $i++) {
  showjsmessage("正在进行数据表{$i} 安装...");
  sleep(rand(0, 1));
}
?>
</div>
</div>
</body>

</html>


作者:一根烟的寂寞 分类:discuz
浏览:87305 评论:0

发表评论: