u mnie na stronie działa coś takiego... wykorzystałem funkcje [manual:5a49a12496]ob_start[/manual:5a49a12496], [manual:5a49a12496]ob_flush[/manual:5a49a12496] i [manual:5a49a12496]ob_end_flush[/manual:5a49a12496] oraz warstwę w JS...[php:1:5a49a12496]<?php
function progress_text($t="")
{
print '<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">' . "n";
print '<!--' . "n";
if(empty($t))
{
print "t" . 'progress_text('<TABLE ALIGN="CENTER" WIDTH="100%" CELLSPACING="0" CELLPADDING="0" BORDER="0"><TR><TD ALIGN="CENTER">' . $t . '</TD></TR></TABLE>');' . "n";
}else{
print "t" . 'progress_text('<TABLE ALIGN="CENTER" WIDTH="100%" CELLSPACING="0" CELLPADDING="0" BORDER="0"><TR><TD ALIGN="CENTER">' . $t . '</TD></TR></TABLE>');' . "n";
}
print '//-->' . "n";
print '</SCRIPT>' . "n";
@ob_flush();
}
?>[/php:1:5a49a12496]W HEAD mam:[xml:1:5a49a12496]
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
function progress_text(txt)
{
if (!document.layers&&!document.all) return;
if (document.layers)
{
document.layers.progress_info.document.write(txt);
document.layers.progress_info.document.close();
}else if (document.all)
progress_info.innerHTML=txt;
}
}
</SCRIPT>[/xml:1:5a49a12496]W BODY wstawiam:[xml:1:5a49a12496]<DIV id="progress_info"></DIV>[/xml:1:5a49a12496]
przed wykonywaniem długiego zadania wstawiam:[php:1:5a49a12496]<?php
progress_text("<B>Proszę czekać...</B><BR>Trwa generowanie strony...");
?>[/php:1:5a49a12496]...i powykonaniu wszystkiego wstawiam:[php:1:5a49a12496]<?php
progress_text();
?>[/php:1:5a49a12496]
Heh... ale kodu nawpisywałem...

mam nadzieję, że się połapiesz...

jak nie to pisz...