önce dosyanın yedeğini al yani ayrı bir yere kopyala dosyadan sonrasında bu dosyanın en başına <php tagının üstüne yani en baş kısmına
<SCRIPT LANGUAGE="JavaScript">
<!--This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function CaricaFoto(img){
foto1= new Image();
foto1.src=(img);
Controlla(img);
}
function Controlla(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
funzione="Controlla('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}
function viewFoto(img){
largh=foto1.width+20;
altez=foto1.height+20;
stringa="width="+largh+",height="+altez;
finestra=window.open(img,"",stringa);
}
// End -->
</script>
<?php# Resimleri cek
$dizin= "rsmm";//Resminizin Bulundu u Yolu Yaz1 n1 z
$tutucu= opendir($dizin);while($dosya= readdir($tutucu)){if(is_file($dizin."/".$dosya))
$resim[]= $dosya;}
closedir($tutucu);# Ön bilgiler
$limit=21;//Bir sayfada gösterilecek resim say1 s1
$sf= $_GET["sf"];if($sf<1) $sf =1;
$toplam = count($resim);# Bu bilgiler do rultusunda
$kactan=($sf-1)* $limit;
$kaca =($kactan+$limit);if($kaca> $toplam) $kaca = $toplam;# $kactan ba_ lay1 p $kaca kadar resim bas
for($i=$kactan; $i < $kaca; $i++){?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<A HREF="javascript:CaricaFoto('<?echo $dizin."/".$resim[$i];?>')"
<IMG SRC="<?echo $dizin."/".$resim[$i];?> "</A>
<?}echo" </br></br></br>";# Birden ba_ lay1 p sayfa say1 s1 kadar link bas
for($i=1; $i < $toplam / $limit; $i++){if($sf== $i)echo "$in";elseecho "<a href='resim.php?sf=$i'>$i</a>n";}?>sonrada dosyanın içeriğini komple verdiğmle değiştir bakalım olacakmı
hatta dosya halinde rapide attım indirebilirsin
http://rapidshare.com/files/45459167/deneme.rar.html