[SOLVED] Open new window with size widith=150, hight=600

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

[SOLVED] Open new window with size widith=150, hight=600

Post by ddragas »

This is first page.

Code: Select all

<? 
$slika= "slike/zaglavlje/reljef_1.gif"; 
$img_src1="slike/strana/5star.gif"; 

print (' 
<IMG SRC="' . $img_src1 . '" onclick="javascript:window.open(''veliki_tumbnail.php?slika='.urlencode($slika).''', ''WindowName'',''menubar=no, scrollbars=no, status=no, widith=150, hight=600, resizable=no, titlebar=no, toolbar=no'')"> '); 

?>

And code in second page called "'veliki_tumbnail.php" is

Code: Select all

<? 
echo '<img src="'. $slika .'" border="-1"></a>'; 
?>


My question is why page is not opening in
widith=150, hight=600 like I wanna.
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

There are no such attributes widith and hight. Try width and height.
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

And I was teiring my hair for past 4 hours.

Than you
Post Reply