Extract the discuz installation progress display, such as what data table is created and what file is created!
A classmate asked a question yesterday
http://www.oschina.net/question/13403_74988, it took some time to extract the discuz.
At first I thought it was ajax completion, but it turned out not to be the case. As for the progress bar and so on, you can play it freely.
- Discuz! Installation Wizard
- 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; }
- < ;/head>
-
-
- //The message displayed after the detection is completed
- function showjsmessage($message) {
- echo ''."rn";
- flush();
- ob_flush();
- }
-
- //Simulate initialization data table
- for ($i = 1; $i <= 50; $i++) {
- showjsmessage("Create data table {$i} ... successfully");
- sleep(rand(0, 1));
- }
- ?>
-
Copy code
|