<script type="text/javascript">
function onImgLoad(id)
{
var img = document.getElementById(id);
var w = 170;
if(img.width>w)
{
var k = img.height/img.width;
img.width = w;
img.height = k*w;
}
}
function InsertImage(id, src)
{
document.write('<a href="'+src+'" id="href_'+id+'"></a><font color="#F9FBF9">.</font>');
document.close();
var img = new Image();
img.id = id;
img.border = 0;
document.getElementById('href_'+id).appendChild(img);
img.onload = function(){onImgLoad(id)};
img.src = src;
}
</script>
<?
$i = 0;
foreach($aPhoto as $value):
?>
<script type="text/javascript">
InsertImage('image<?echo $i?>', '<?echo addslashes($value)?>');
</script>
<noscript>
<a href="<?echo $value?>"><img src="<?echo $value?>" alt="" border="0"></a><font color="#F9FBF9">.</font>
</noscript>
<?
$i++;
endforeach;
?>
|