Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello,
I am facing a little problem. I have an image. I get its dimensions by using php method "getimagesize()".
It returns me the image height and image width.
Now i open a popup window, according to this height and width.
But the popup window will not open exactly at this size
Here is my code:Code: Select all
$img_size = getimagesize("images/kitoptions/large/".$lar_img."");
$h = $img_size[0];
$w = $img_size[1];
<a href="#" onClick="window.open('viewkit_large_image.php?val=<?=$lar_img?>
','Popup','left=120,top=75,width=<?=$w?>,height=<?=$h?>,scrollbars=yes')">and $w = 400
so according to my code, the popup window opened, must be off this size. but this not happens.
kindly tell me that how to solve this problem
plz reply
thanks
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]