00mike00
Guest
echo("</script>"); nepravilno vivodit
ljudi 4to mozno sdelatj shtob vse rabotalo???
a to izza 44 stro4ki(ona videlena vosklicateljnim znakom) funkcija echo(); /s za shtoto prinemajet
PHP:
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;" CHARSET="Windows-1251">
<style type="text/css">
body {scrollbar-3dlight-color: white; scrollbar-arrow-color: gray; scrollbar-base-color: white;
scrollbar-darkshadow-color: white;SCROLLBAR-TRACK-COLOR: gray;}
</style>
<?php
echo("<script> ");
echo("function open_send(who,what,items) ");
echo("{ ");
echo("mywin=open(\"\",who,what); ");
echo("mywin.document.write( '<html> ' ); ");
echo("mywin.document.write( '<head> ' ); ");
echo("mywin.document.write( '<script> ' ); ");
echo("mywin.document.write( 'i=1; ' ); ");
echo("mywin.document.write( 'function next() ' ); ");
echo("mywin.document.write( '{ ' ); ");
echo("mywin.document.write( 'if (i >= temp.value) ' ); ");
echo("mywin.document.write( '{ ' ); ");
echo("mywin.document.write( 'i = 1; ' ); ");
echo("mywin.document.write( 'pic.src= \"pictures/pic (\"+i+\").JPG\"; ' ); ");
echo("mywin.document.write( '} ' ); ");
echo("mywin.document.write( 'else ' ); ");
echo("mywin.document.write( '{ ' ); ");
echo("mywin.document.write( 'i++; ' ); ");
echo("mywin.document.write( 'pic.src= \"pictures/pic (\"+i+\").JPG\"; ' ); ");
echo("mywin.document.write( '} ' ); ");
echo("mywin.document.write( '} ' ); ");
echo("mywin.document.write( 'function prev() ' ); ");
echo("mywin.document.write( '{ ' ); ");
echo("mywin.document.write( 'if (i <= 1) ' ); ");
echo("mywin.document.write( '{ ' ); ");
echo("mywin.document.write( 'i = temp.value; ' ); ");
echo("mywin.document.write( 'pic.src= \"pictures/pic (\"+i+\").JPG\"; ' ); ");
echo("mywin.document.write( '} ' ); ");
echo("mywin.document.write( 'else ' ); ");
echo("mywin.document.write( '{ ' ); ");
echo("mywin.document.write( 'i--; ' ); ");
echo("mywin.document.write( 'pic.src= \"pictures/pic (\"+i+\").JPG\"; ' ); ");
echo("mywin.document.write( '} ' ); ");
echo("mywin.document.write( '} ' ); ");
echo("mywin.document.write( '</script>'); "); !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo("mywin.document.write( '</head> ' ); ");
echo("mywin.document.write( '<body bottommargin=0 leftmargin=0 topmargin=0 rightmargin=0> ' ); ");
echo("mywin.document.write( ' <table height=\"100%\" height=\"100%\" cellspacing=0 cellspacing=0 border=0 bgcolor=gray align=center> ' ); ");
echo("mywin.document.write( ' <tr> ' ); ");
echo("mywin.document.write( ' <td width=30 height=30></td> ' ); ");
echo("mywin.document.write( ' <td height=30><input type=text name=temp value='+items+' ></td> ' ); ");
echo("mywin.document.write( ' <td width=30 height=30></td> ' ); ");
echo("mywin.document.write( ' </tr> ' ); ");
echo("mywin.document.write( ' <tr> ' );");
echo("mywin.document.write( ' <td width=30></td> ' ); ");
echo("mywin.document.write( ' <td> ' ); ");
echo("mywin.document.write( ' <img name=pic height=510 width=680 > ' ); ");
echo("mywin.document.write( ' </td> ' ); ");
echo("mywin.document.write( ' <td width=30></td> ' ); ");
echo("mywin.document.write( ' </tr> ' ); ");
echo("mywin.document.write( ' <tr> ' );");
echo("mywin.document.write( ' <td width=30 height=30></td> ' ); ");
echo("mywin.document.write( ' <td height=30 align=center > ' ); ");
echo("mywin.document.write( ' <input type=button value=prev onclick=prev()> ' ); ");
echo("mywin.document.write( ' <input type=button value=next onclick=next()> ' ); ");
echo("mywin.document.write( ' </td> ' ); ");
echo("mywin.document.write( ' <td width=30 height=30></td> ' ); ");
echo("mywin.document.write( ' </tr> ' ); ");
echo("mywin.document.write( ' </table> ' ); ");
echo("mywin.document.write( ' </body> ' ); ");
echo("mywin.document.write( ' </html> ' ); ");
echo("} ");
echo("</script> ");
?>
</head>
<body bgcolor="gray" text="white">
<?
$iii = "javascript(document.body.offsetwidth)";
$handle = opendir("pictures") or die("Can't open directory!");
while (false !== ($file = readdir($handle))) { $j++; } $j= $j-2;
echo("<table align=center>");
for ($i=1;$i<=$j;$i++)
{
$t = $i % 5;
if ($t==1) {echo("<TR>");}
echo("<td><img src=\"pictures/pic ($i).JPG\" width=\"120\" height=\"90\" onclick=open_send(\"newWindow\",\"height=580,width=1740,menubar=no\",\"10\")></td>");
if ($t==0) {echo("</TR>");}
}
echo("</table>");
?>
</body>
</htmL>
ljudi 4to mozno sdelatj shtob vse rabotalo???
a to izza 44 stro4ki(ona videlena vosklicateljnim znakom) funkcija echo(); /s za shtoto prinemajet

