Ik heb dit in image.php:
<?
$color= 255 - (($width * $width) *0.0255);
$width1= 100 - $width;
$color1= 255 -(($width1 * $width1)*0.0255);
$wi = $width * 3;
$w = $wi+5;
if ($wi>=270)
{
$w = 270;
}
$wid = round($width)."%";
$im = imagecreate(300, 13)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 255, 255, 255);
$bor = imagecolorallocate($im, 220, 220, 220);
$bar = imagecolorallocate($im, $color, $color1, 0);
$text_color = imagecolorallocate($im, 0, 0, 0);
imagerectangle ($im, 0, 0, 299, 12, $bor);
imagefilledrectangle ($im, 1, 1, $wi, 11, $bar);
imagestring($im, 2, $w, 0, $wid, $text_color);
imagepng($im);
imagedestroy($im);
?>
En op een andere pagina gebruik ik dit:
<img src="image.php?width=100">
Maar het lukt niet, http://members.lycos.nl/eeuroplaza/start.html
Wat is er fout?
912 views