GUI Code

  Home arrow GUI Code arrow Colorpicker
GUI CODE

Colorpicker
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2004-05-22

    Table of Contents:

     
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement
    Websafe 216 color colorpicker self-submitting page

    By : FatherStorm

    <?
    #########################################################################################
    #
    # Self-submitting colorpicker
    # by: Father Storm
    # http://www.fatherstorm.com
    #
    # Optional screen sizing script can be commented out.
    #
    # echo" <body><script>window.resizeTo(400,500);</script>"
    #
    #########################################################################################
    for ($red_channel=0;$red_channel<=15;$red_channel=$red_channel+3)
    {
    for ($green_channel=0;$green_channel<=15;$green_channel=$green_channel+3)
    {
    for ($blue_channel=0;$blue_channel<=15;$blue_channel=$blue_channel+3)
    {
    $red_channel_value=dechex($red_channel).dechex($red_channel);
    $green_channel_value=dechex($green_channel).dechex($green_channel);
    $blue_channel_value=dechex($blue_channel).dechex($blue_channel);
    @$index_pointer++;
    $hex_values_table[$index_pointer]=$red_channel_value.$green_channel_value.$blue_channel_value;
    }
    }
    }
    $index_pointer=1;
    echo "<table>";
    for ($x=1;$x<=15;$x++)
    {
    echo "<tr>";
    for ($y=1;$y<=15;$y++)
    {
    $display_value=@$hex_values_table[$index_pointer];
    if (!$display_value)$display_value="ffffff";
    echo "<a href='colorselect.php?color=$display_value' alt='$display_value' title='$display_value'><td title='$display_value' alt='$display_value' style='cursor:pointer;cursor:hand;' width=20px height=20px alt='$display_value' bgcolor=$display_value></td></a>";
    $index_pointer++;
    }
    echo"</tr>";
    }

    echo "</table>";

    if (@$link_submitted_value=@$_REQUEST['color']) echo "You have selected:<br> Hexadecimal Color [$link_submitted_value]<table><tr><td width=356px height=25px bgcolor=$link_submitted_value></td></tr></table>";;

    ?>
    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More GUI Code Articles
    More By Codewalkers

    blog comments powered by Disqus

    GUI CODE ARTICLES

    - PHP Image Manipulation Class 1.0
    - Simple PHP-CAPTCHA,
    - dPhoto
    - nice looking dir index'r
    - Colorpicker
    - Exposure Gallery build 1226
    - Dynamic "AQUA" Buttons
    - AdminTool|1.0 for Exposure Gallery
    - Exposure Gallery v1.2
    - Crop Canvas
    - Display all available background colours
    - Exposure Gallery v1.0
    - JPEG Directory Thumbnail system (Apect ratio)
    - JPEG Directory thumbnail system
    - Change Background Color each day

    Developer Shed Affiliates

     



    © 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap