|
|
|
/* Include the following function in your script: */
function button($text) {
$enc_text = urlencode($text);
echo "<img src="button.php3?$enc_text" border=0 Alt="$text">";
}
/* Then create a button.php3 which contains: */
<?
Header( "Content-type: image/gif");
$string=implode($argv, " ");
$im = imagecreatefromgif( "/button1.gif");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
ImageGif($im);
ImageDestroy($im);
?>
/*
button1.gif is a 135x40 GIF background for the button. I use a dark blue
background with bevelled edges and as the above example reflects, orange
text. Experiment with the colours and the sizing algorithm if you change
the background image size. You should also change the path to the
button1.gif image to reflect where you have your images within your web
tree.
button1.gif is available at
http://www.sklar.com/px/files/graphics/button1.gif
*/ |
|
| Create Thumbnails - resize an image - jpeg, jpg, gif, png to the specifed width and height in proportion without loosing out on pixcel quality. Categories : PHP, GD image library, Graphics | | | Random Image Display Categories : PHP, Filesystem, Graphics, HTML and PHP | | | PHP Round Clock - Must have Gif support to use this. Categories : PHP, Date Time, Graphics | | | Creating thumbnails from MySQL Blobs online Categories : PHP, MySQL, Graphics, HTML and PHP, Databases | | | webcam cam view image ispy browser independant Categories : Graphics, HTML, HTML and PHP, PHP | | | Diffusion-Limited Aggregation visualization Categories : PHP, Graphics, Algorithms, Math. | | | Create images on fly using GD-Image Lib Categories : PHP, Graphics | | | Read DPI value from image with PHP Categories : PHP, Graphics, Filesystem | | | This is a script that list all image files on a given directory, and displays
the thumbnails nicely formated within an HTML table. It also make use of
JavScript to open pop up windows when the users want to see the full photo. Categories : Graphics, PHP, Complete Programs, Java Script | | | Functions for loading images into a MySQL database and displaying them. Categories : Graphics, HTML and PHP, MySQL, PHP, Databases | | | Render TTF Text to PNG. Text message, font, size, rotation, padding, color, background, and transparency can all be defined via URL. Categories : PHP, PHP Classes, Graphics | | | Annual Bar Chart Categories : Graphics, PHP, Charts and Graphs | | | Display a bar chart based on random values. Categories : Graphics, PHP, GD image library, Charts and Graphs | | | EasyPhpThumbnail Class - The EasyPhpThumbnail class allows you to generate thumbnails and handle image manipulation for GIF, JPG and PNG on-the-fly. Categories : PHP, PHP Classes, Object Oriented, Graphics, GD image library | | | This program implements hot link prevention in php. It is useful for webmasters who do not have access to the server at a level where they can control hot linking can still supply some type of hot link prevention for thier site by using php. Categories : PHP, Filesystem, Graphics, Content Management | |
| | | | Nehal dave wrote : 136
cant create any image through php.... cant find what is
wrong.. if anyone knows pls mail me ... i will be
thankful..
| | | | Joerg Kirchhoff wrote : 205
The picture is not available
| | | | cyber priest wrote :452
the pX url changed to px.sklar.com so the url for the button is
http://px.sklar.com/files/graphics/button1.gif
now
greetz cpriest!SAE
| |
|
|
|