Вход Регистрация
Файл: editor/script.php
Строк: 267
<script type="text/javascript" src="foto/editor/reflection.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var useRand = <?php
if($photo!=&& $photo!=count($name)-1$qqq111=$photo;
elseif(
$photo==count($name)-1$qqq111=$photo-1;
else 
$qqq111=$photo+1;
echo 
$qqq111?>;
var tpol=<?php $qqq111=$photo+1; echo $qqq111?>;

images = new Array;
<?php
for($asdasdqwe=0;$asdasdqwe<count($name);$asdasdqwe++)
{
$qweqweqw=$asdasdqwe+1;
echo 
"
images["
.$qweqweqw."] = new Image();
images["
.$qweqweqw."].src = "foto/data/miniphoto.php?fn=".$albom[$ftalb]."/".$name[$asdasdqwe]."&h=170";
images["
.$qweqweqw."].hrefs = "?ftalb=".$ftalb."&photo=".$asdasdqwe."";
images["
.$qweqweqw."].comm = "".$comment[$asdasdqwe]."";";
}
?>

Reflection.defaultHeight = 0.3;
Reflection.defaultOpacity = 0.6;

function swapPicm() {
if (useRand-1>0)
{
useRand = useRand-1;

Reflection.remove(document.getElementById("img1"));
Reflection.remove(document.getElementById("img2"));
Reflection.remove(document.getElementById("img3"));

document.getElementById('img1').src = images[useRand].src;
document.getElementById('img1_a').href = images[useRand].hrefs;
document.getElementById('img1').title = images[useRand].comm;
document.getElementById('img2').src = images[useRand+1].src;
document.getElementById('img2_a').href = images[useRand+1].hrefs;
document.getElementById('img2').title = images[useRand+1].comm;
document.getElementById('img3').src = images[useRand+2].src;
document.getElementById('img3_a').href = images[useRand+2].hrefs;
document.getElementById('img3').title = images[useRand+2].comm;

if (useRand==tpol)
{ document.getElementById('img1').style.float='center';
document.getElementById('img1').style.padding='2px';
document.getElementById('img1').style.background='red'; }
else
{ document.getElementById('img1').style.padding='0px';
document.getElementById('img1').style.background=''; }
if (useRand+1==tpol)
{ document.getElementById('img2').style.float='center';
document.getElementById('img2').style.padding='2px';
document.getElementById('img2').style.background='red'; }
else
{ document.getElementById('img2').style.padding='0px';
document.getElementById('img2').style.background=''; }
if (useRand+2==tpol)
{ document.getElementById('img3').style.float='center';
document.getElementById('img3').style.padding='2px';
document.getElementById('img3').style.background='red'; }
else
{ document.getElementById('img3').style.padding='0px';
document.getElementById('img3').style.background=''; }

Reflection.add(document.getElementById("img1"));
Reflection.add(document.getElementById("img2"));
Reflection.add(document.getElementById("img3"));

}
}
function swapPicp() {
var imgnum = images.length-1;
if (useRand+2<imgnum)
{
useRand = useRand+1;

Reflection.remove(document.getElementById("img1"));
Reflection.remove(document.getElementById("img2"));
Reflection.remove(document.getElementById("img3"));

document.getElementById('img1').src = images[useRand].src;
document.getElementById('img1_a').href = images[useRand].hrefs;
document.getElementById('img1').title = images[useRand].comm;
document.getElementById('img2').src = images[useRand+1].src;
document.getElementById('img2_a').href = images[useRand+1].hrefs;
document.getElementById('img2').title = images[useRand+1].comm;
document.getElementById('img3').src = images[useRand+2].src;
document.getElementById('img3_a').href = images[useRand+2].hrefs;
document.getElementById('img3').title = images[useRand+2].comm;

if (useRand==tpol)
{ document.getElementById('img1').style.float='center';
document.getElementById('img1').style.padding='2px';
document.getElementById('img1').style.background='red'; }
else
{ document.getElementById('img1').style.padding='0px';
document.getElementById('img1').style.background=''; }
if (useRand+1==tpol)
{ document.getElementById('img2').style.float='center';
document.getElementById('img2').style.padding='2px';
document.getElementById('img2').style.background='red'; }
else
{ document.getElementById('img2').style.padding='0px';
document.getElementById('img2').style.background=''; }
if (useRand+2==tpol)
{ document.getElementById('img3').style.float='center';
document.getElementById('img3').style.padding='2px';
document.getElementById('img3').style.background='red'; }
else
{ document.getElementById('img3').style.padding='0px';
document.getElementById('img3').style.background=''; }

Reflection.add(document.getElementById("img1"));
Reflection.add(document.getElementById("img2"));
Reflection.add(document.getElementById("img3"));
}
}
//  End -->
</script>
<?php
$asdawdawd_tmp_tmp
="";
if(
$photo>&& $photo<count($name)-1)
{
$asdawdawd_tmp_tmp=$photo-1;
$img_tmp_arr_href[]="?ftalb=".$ftalb."&photo=".$asdawdawd_tmp_tmp;
$asdawdawd_tmp_tmp=$photo;
$img_tmp_arr_href[]="?ftalb=".$ftalb."&photo=".$asdawdawd_tmp_tmp;
$asdawdawd_tmp_tmp=$photo+1;
$img_tmp_arr_href[]="?ftalb=".$ftalb."&photo=".$asdawdawd_tmp_tmp;
$img_tmp_arr_border[]="";
$img_tmp_arr_border[]="float: center; background-color: red; padding: 2px;";
$img_tmp_arr_border[]="";
$img_tmp_arr_src[]=$albom[$ftalb]."/".$name[$photo-1];
$img_tmp_arr_src[]=$albom[$ftalb]."/".$name[$photo];
$img_tmp_arr_src[]=$albom[$ftalb]."/".$name[$photo+1];
$img_tmp_arr_title[]=$comment[$photo-1];
$img_tmp_arr_title[]=$comment[$photo];
$img_tmp_arr_title[]=$comment[$photo+1];
}
elseif(
$photo==0)
{
$asdawdawd_tmp_tmp=$photo;
$img_tmp_arr_href[]="?ftalb=".$ftalb."&photo=".$asdawdawd_tmp_tmp;
$asdawdawd_tmp_tmp=$photo+1;
$img_tmp_arr_href[]="?ftalb=".$ftalb."&photo=".$asdawdawd_tmp_tmp;
$asdawdawd_tmp_tmp=$photo+2;
$img_tmp_arr_href[]="?ftalb=".$ftalb."&photo=".$asdawdawd_tmp_tmp;
$img_tmp_arr_border[]="float: center; background-color: red; padding: 2px;";
$img_tmp_arr_border[]="";
$img_tmp_arr_border[]="";
$img_tmp_arr_src[]=$albom[$ftalb]."/".$name[$photo];
$img_tmp_arr_src[]=$albom[$ftalb]."/".$name[$photo+1];
$img_tmp_arr_src[]=$albom[$ftalb]."/".$name[$photo+2];
$img_tmp_arr_title[]=$comment[$photo];
$img_tmp_arr_title[]=$comment[$photo+1];
$img_tmp_arr_title[]=$comment[$photo+2];
}
elseif(
$photo==count($name)-1)
{
$asdawdawd_tmp_tmp=$photo-2;
$img_tmp_arr_href[]="?ftalb=".$ftalb."&photo=".$asdawdawd_tmp_tmp;
$asdawdawd_tmp_tmp=$photo-1;
$img_tmp_arr_href[]="?ftalb=".$ftalb."&photo=".$asdawdawd_tmp_tmp;
$asdawdawd_tmp_tmp=$photo;
$img_tmp_arr_href[]="?ftalb=".$ftalb."&photo=".$asdawdawd_tmp_tmp;
$img_tmp_arr_border[]="";
$img_tmp_arr_border[]="";
$img_tmp_arr_border[]="float: center; background-color: red; padding: 2px;";
$img_tmp_arr_src[]=$albom[$ftalb]."/".$name[$photo-2];
$img_tmp_arr_src[]=$albom[$ftalb]."/".$name[$photo-1];
$img_tmp_arr_src[]=$albom[$ftalb]."/".$name[$photo];
$img_tmp_arr_title[]=$comment[$photo-2];
$img_tmp_arr_title[]=$comment[$photo-1];
$img_tmp_arr_title[]=$comment[$photo];
}
?>
<style type="text/css">
img { border: 0; }
</style>
<table border=0>
<tr><td>
<a onClick="swapPicm();"><img src="foto/img/stlf.gif" width="22" height="20" alt="" border="0"></a>
<br><br><br></td><td>&nbsp;</td>
<td align=center>
<a href="<?=$img_tmp_arr_href[0];?>" id=img1_a><img id="img1" border=0 style="<?=$img_tmp_arr_border[0];?>" src="foto/data/miniphoto.php?fn=<?=$img_tmp_arr_src[0];?>&h=170" class="reflect" title="<?=$img_tmp_arr_title[0];?>"></a>
</td><td>&nbsp;</td>
<td align=center><a href="<?=$img_tmp_arr_href[1];?>" id=img2_a><img id="img2" border=0 style="<?=$img_tmp_arr_border[1];?>" src="foto/data/miniphoto.php?fn=<?=$img_tmp_arr_src[1];?>&h=170" class="reflect" title="<?=$img_tmp_arr_title[1];?>"></a>
</td><td>&nbsp;</td>
<td align=center><a href="<?=$img_tmp_arr_href[2];?>" id=img3_a><img id="img3" border=0 style="<?=$img_tmp_arr_border[2];?>" src="foto/data/miniphoto.php?fn=<?=$img_tmp_arr_src[2];?>&h=170" class="reflect" title="<?=$img_tmp_arr_title[2];?>" /></a>
</td><td>&nbsp;</td>
<td><a onClick="swapPicp();"><img src="foto/img/strg.gif" width="22" height="20" alt="" border="0">
<br><br><br></a>
</td></tr></table>
Онлайн: 1
Реклама