Log in

View Full Version : How To Make The Cool Little CSS and HTML Buttons...



tomyknoker
05-20-2007, 09:22 AM
I saw a tut once on how to make the attached buttons... Anyone have any ideas?

ddadmin
05-20-2007, 11:11 AM
Well, there are online tools for this, such as: http://www.lucazappa.com/brilliantMaker/buttonImage.php And of course, yours truly: http://tools.dynamicdrive.com/button/

tomyknoker
05-20-2007, 12:34 PM
Ha it was your one I was after I knew I saw it somewhere... Um this thing rocks! How is it actually done? Does JavaScript make the image? I'm blown away!

Twey
05-20-2007, 12:36 PM
No, PHP generates the image server-side. Javascript is only used for some of the interface.

tomyknoker
05-20-2007, 09:57 PM
Hi Twey... Can you point me to something I could read about this?

thetestingsite
05-20-2007, 10:05 PM
Take a look at this page for the image creation aspect of PHP.
http://us.php.net/manual/en/ref.image.php

Hope this helps.

djr33
05-20-2007, 10:07 PM
You can use the GD library to create images. This is complex, not too well documented and overall not exactly easy to use. It's cool, but not an easy project.

http://www.php.net/manual/en/ref.image.php
Start there. Be sure that the GD library is installed with PHP. Most of the time with newer packages, it is. (gd_info() can check.)

For a basic example using a png:
http://www.php.net/manual/en/function.imagepng.php
(look at the short codeblock example on the page.)

EDIT: looks like we posted at the same time, testingsite.