Results 1 to 7 of 7

Thread: How To Make The Cool Little CSS and HTML Buttons...

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How To Make The Cool Little CSS and HTML Buttons...

    I saw a tut once on how to make the attached buttons... Anyone have any ideas?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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/

  3. #3
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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!

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, PHP generates the image server-side. Javascript is only used for some of the interface.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Twey... Can you point me to something I could read about this?

  6. #6
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •