<?php
## The pop up function for dodo's nmimage popup
function popup($nmdir, $title, $pic, $thumbnail, $des, $fmode = "false") {
global $target;
$target++;
$size = GetImageSize($pic);
$width = $size[0];
$height = $size[1];
if($thumbnail != "" && $thumbnail != "none") {
$size = GetImageSize($thumbnail);
$twidth = $size[0];
$theight = $size[1];
}
// get function mode
if($fmode != "false") {
$fmode = explode(",", $fmode);
$mode = $fmode[0];
}
print "
<A HREF=\"#\" onMouseOver=\"window.status='$title';return true\" onMouseOut=\"window.status='';return true\" onClick=\"window.open('$nmdir";
print "nmimage.php?z=$dir$pic&width=$width&height=$height&title=$title','blank','width=$width,height=$height,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,left=0,top=0,screenx=50,screeny=50');return false\">";
if($thumbnail != "" && $thumbnail != "none") {
if($mode == "highlight") {
if(!$fmode[1])
$fmode[1] = "black";
if(!$fmode[2])
$fmode[2] = "white";
print "[img]\"$thumbnail\"[/img]</a>";
} elseif($mode == "shake") {
print "[img]\"$thumbnail\"[/img]";
} elseif($mode == "ghighlight") {
if(!$fmode[1])
$fmode[1] = 50;
print "[img]\"$thumbnail\"[/img]";
} else {
print "[img]\"$thumbnail\"[/img]";
}
} else {
print "$des";
}
} // end of function
?>
<html>
<?php
## call the function with description
popup("", "dlight-events.nl", "images/gallery/fullsize/_f08-06-20030001.jpg", "images/gallery/thumbnails/_t08-06-20030001.jpg", "no more lines plz");
?>