Forum

Questions and discussions

True color name

Script's setup and configuration

True color name

Postby PascalP » Sun Sep 23, 2012 5:43 pm

For Anton

color_mass=new Array("black","white","red","green","blue","magenta","cian","yellow","orange");

cian = true name "cyan" or "aqua"


http://www.w3schools.com/html/html_colornames.asp
PascalP
 
Posts: 41
Joined: Thu Apr 22, 2010 4:42 pm
Location: Tours, France

Re: True color name

Postby admin » Tue Sep 25, 2012 4:14 pm

Thank you. But the wrong name is only into the programming code. It is unavailable for the people.
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm

Re: True color name

Postby PascalP » Mon Oct 01, 2012 10:42 pm

it's for that =$color_bg="#0CEEF1";

Code: Select all
function color_set($default_color)
{
   $color_mass=array("black","white","red","green","blue","magenta","cian","yellow","orange");
   $color_result="<div class='color_set'>";      
   
      for($t=0;$t<count($color_mass);$t++)
      {
         if($color_mass[$t]!="cian")
         {
            $color_bg=$color_mass[$t];
         }
         else
         {
            $color_bg="#0CEEF1";
         }
         $color_class="";
         if($color_mass[$t]==$default_color)
         {
            $color_class="2";
         }
         $color_result.="<div id='color_".$color_mass[$t]."' style='background-color:".$color_bg."' class='box_color".$color_class."' onClick=\"change_color('".$color_mass[$t]."')\">&nbsp;</div>";
      }
      $color_result.="</div><input type='hidden' name='color' id='color' value='".$default_color."'>";
   return $color_result;
}
PascalP
 
Posts: 41
Joined: Thu Apr 22, 2010 4:42 pm
Location: Tours, France


Return to Configuration

Who is online

Users browsing this forum: No registered users and 3 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.