Forum Moderators: open
while($roe=mysql_fetch_array($result))
{
$item=$roe['item'];
$description=$roe['description'];
$caption=$roe['caption'];
$address=$roe['photoaddress'];
$aadress=$p.$address;
$tablerow=<<<MEOW
<div class ="figure">
<div class= "photo">
<a href="cuteshot.php?thedisplay=$item" onclick=tellme("item");><img src="$aadress" height="200" alt="$description" /></a>
</div>
</div>
\n
MEOW;
echo $tablerow;
<script type="text/javascript">
function tellme(itemid,large_image) {
alert('Item is ' + itemid + ', do something with this?');
var day = new Date();
var id=day.getTime();
var params = 'width=600,height=600,resizable,scrollbars';
msg = '<html><title>'+itemid+'</title>'+
'<style type="text/css">'+
'body { font-family:Arial,Helvetica,Sans-Serif; text-align:center; }'+
'</style></body><h1>'+itemid+'</h1>'+
'<img src="' + large_image + '">'
'<form><input type="button" onclick="window.close()"'+
' value="Close Window"></form></body></html>';
var win = open('',id,params);
win.document.write(msg);
win.document.close();
return false;
}
</script>