// New popup funstuff
function _cpg_link_href_popup($image) {
global $cpg_base;
$width=$image->pwidth+20;
$height=$image->pheight+20;
$desc=$image->caption;
$title=$image->title;
if (cpg_is_image($image)) {
return
"javascript:void(mywindow=window.open('','mywindow ','toolbar=no,status=no,re
sizable=yes,width={$width},height
={$height}'));mywindow.document.write('<html><head ><title>{$title}</title></
head><body bgcolor=#ffeedd><img src="{$cpg_base}dis
playimage.php?pid={$image->pid}&fullsize=1"><br
/><br/>{$desc}</body></html>');mywindow.document.close();";
} else {
$uri=cpg_urlencode(_cpg_get_image_uri($image));
return "javascript:void(window.open('$uri'));";
}
}
This returns exactly what it looks like it should...except the image is
broken. If I look at the source, it looks exactly like it should, and I can
copy/paste it into a new browser window and get the image I'm looking for.
I've tried messing with leaving the quotes, using single quotes, not using
them at all, leaving the question mark in the php? call, etc.
The title and desc variables work just fine.
I cannot figure out what's broken here. Can anyone help?
Thank you!
Peace,
Pen