image height and width
Posted: Sat Jan 22, 2005 10:30 pm
i am adding some small modifications to a php image gallery script and seem to be having problems with the height and width attributes of the pop-up window.
php source:
HTML output:
my problem is- even though the html source is being put out in the correct manner, the height and the width just don't seem to want to change to the height and width specified. Why?
.
Brian
php source:
Code: Select all
<html>
<head>
<title><?php
echo $_GETї'img'];
$img = $_GETї'img'];
$h = $_GETї'h'];
$w = $_GETї'w'];
?>
</title>
<link href="http://bst82551.ath.cx:8181/scroll.css" rel="stylesheet" type="text/css">
</head>
<body>
<a href="javascript:window.close()">
<img src="<?php
echo $img;
?>" height=<?php
echo $h;
?> width=<?php
echo $w;
?>>
</a>
</body>
</html>Code: Select all
<html>
<head>
<title>image.jpg</title>
<link href="http://bst82551.ath.cx:8181/scroll.css" rel="stylesheet" type="text/css">
</head>
<body>
<a href="javascript:window.close()">
<img src="image.jpg" height=1021 width=1492>
</a>
</body>
</html>Brian