View Full Version : images not showing in pop-up window - help!

09-22-2005, 11:35 AM
Even though the images exists in its folder, and the script should work fine (it works on another server, but not my test server), this code somehow is not right:

<script language="javascript">
function photo_open(link,width,height)
var photoWindow=window.open(link,"photo",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',hei ght='+height);
It corresponds with the following:

//initialize variables
$photos_per_page=$num_rows * $photos_per_row;
//check to see if the start variable exists in the URL.
//If not, then the user is on the first page - set start to 0
$start = 0;
//init i to where it needs to start in the photos array
$i = $start;
$prev_start = $start - $photos_per_page;
$next_start = $start + $photos_per_page;

for ($row=0; $row <$num_rows; $row++){
for ($col=0; $col <$photos_per_row; $col++){
if($i <$total_photos){
print("<td valign=\"top\" align=\"center\"><a href=\"javascript:photo_open('photo_display.php?photo=".trim($photos[$i])."','".$image_size[0]."','".$image_size[1]."');\"><img src=\"".$thumbnail."\" ".$thumb_image_size[3]." border=0></a></td>\n");
} else {
//end table

Plz plz, can anyone tell me what I'm doing wrong here?


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum