Results 1 to 10 of 10

Thread: Colors Chart by LoveRahiPlus

  1. #1
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    38
    Gender
    Male
    Posts
    1,609
    Threads
    51
    Credits
    1,311
    Thanked
    9

    Question Colors Chart by LoveRahiPlus

    Assalam-o-laikum Sathio main ny PHP mai aik colors chart banaya hai umeed hai color chart tu aapko zror pasand aiega....

    Mere s Charts ki tamam credit mere muazez ustad SHAKEEL ko jati hai jes say mai ny PHP seekha (Taham mai ny kam seekha hai par seekha tu unhe sy hai)...

    Mere s torde se koshesh k baary mai please zror comments deen (Khaas kar PHP exports)...

    PHP Code:
    <html>
    <head>
    <title>Colors Chart by Kashif Ahmad (LoveRahiPlus)</title>

    <script>
    //Creat Function that apply/change selected/choosed color...
    function SelectColor(thisClr, chooseIt){
        /***********************************************************************
        if the color select from color chart(giving) the value will return 1 and 
        the clicked/choosed color will change successfully. Otherwise Color will
        not change.
        ************************************************************************/
        if (chooseIt==1){
            //Apply selected/choosed color to the place to be colored.
            Chosed_Color.innerHTML= "<center><i>New<br />color<br />"
                    +thisClr+"<br />changed<br />successfully.</i></center>"
        }
    }
    </script>


    <?php
    //starting from the table
    echo "<table border='0.05pt'>";
        
    //All Colors codes/numbers in hexadecimal format is arraied.
        
    $num = Array ("00""11""22""33""44""55""66""77""88""99""AA""BB""CC""DD""EE""FF");
        for(
    $i 0$i <= 15$i+=3){    
        
    /******************************************************************
            Start another line after completing 1st loop ($i, $j, $y);
            $i used for 1st 2 digits, $j for middle ones while $ used
            for last 2 digits (eg $i=FF, $j=00 & $y=DD ==> #FF00DD)
        ******************************************************************/
        
    echo "<tr>";
            for(
    $j 0$j <= 15$j+=3) {
                for(
    $y 0$y <= 15$y+=3){
                    
    //Collect all loops as a color code
                    
    $chClr "#".$num[$i].$num[$j].$num[$y];
                    
    //Show all colors as a chart.
                    
    echo "<a href='javascript:SelectColor(\"$chClr\", 1)'>
                    <td width=10 height=10 bgColor="
    .$chClr.">
                    </td></a>"
    ;
                }
            }
            echo 
    "</tr>";
        }
    echo 
    "</table><br />";

    ?>
    </head>
    <body>
    Selected Color is :
    <div style=
        "width:100px; Height:100px;background-color=red" 
        id=Chosed_Color>
    </div>
    </body>
    </html>
    Mere Codes mai chaahta hoon k Choosed_Color k rang bhe same osi traah hoo jo mai ny select kia ho....mai ny tu bahot koshesh ki par nakaam raha...Please export help me....
    How can i change the color of Chosed_Color (DIV) background color to the selected one?

    Aap ka Shukria
    Kashif Ahmad
    (LoveRahiPlus)
    Death is not the biggest Loss in life.
    The biggest loss is when relationships die among us when we are alive!!
    (Shakespeare)

  2. #2
    shakeel's Avatar
    shakeel is offline Senior Member+
    Last Online
    22nd July 2016 @ 07:02 PM
    Join Date
    04 Sep 2006
    Location
    Islamabad
    Posts
    177
    Threads
    30
    Credits
    992
    Thanked
    3

    Default

    Quote loverahiplus said: View Post
    Assalam-o-laikum Sathio main ny PHP mai aik colors chart banaya hai umeed hai color chart tu aapko zror pasand aiega....

    Mere s Charts ki tamam credit mere muazez ustad SHAKEEL ko jati hai jes say mai ny PHP seekha (Taham mai ny kam seekha hai par seekha tu unhe sy hai)...

    Mere s torde se koshesh k baary mai please zror comments deen (Khaas kar PHP exports)...



    Mere Codes mai chaahta hoon k Choosed_Color k rang bhe same osi traah hoo jo mai ny select kia ho....mai ny tu bahot koshesh ki par nakaam raha...Please export help me....
    How can i change the color of Chosed_Color (DIV) background color to the selected one?

    Aap ka Shukria
    Kashif Ahmad
    (LoveRahiPlus)
    -----------------------------------------------------------------------
    Buhat achay, kia baat hay. main nay app kay code ko thora change kia hay or ab app jis color per click karain gai to wo color Chosed_Color main nazar aee ga. main nay Firefox or Explorer dono per check kia hay.

    PHP Code:
    <html>
    <head>
    <title>Colors Chart by Kashif Ahmad (LoveRahiPlus)</title>

    <script>
    //Creat Function that apply/change selected/choosed color...
    function SelectColor(thisClr, chooseIt){
        /***********************************************************************
        if the color select from color chart(giving) the value will return 1 and 
        the clicked/choosed color will change successfully. Otherwise Color will
        not change.
        ************************************************************************/
        if (chooseIt==1){
            //Apply selected/choosed color to the place to be colored.
            //--------------yaha per change kia hay----------------------//
            document.getElementById("Chosed_Color").style.background=thisClr;
        }
    }
    </script>


    <?php
    //starting from the table
    echo "<table border='0.05pt'>";
        
    //All Colors codes/numbers in hexadecimal format is arraied.
        
    $num = Array ("00""11""22""33""44""55""66""77""88""99""AA""BB""CC""DD""EE""FF");
        for(
    $i 0$i <= 15$i+=3){    
        
    /******************************************************************
            Start another line after completing 1st loop ($i, $j, $y);
            $i used for 1st 2 digits, $j for middle ones while $ used
            for last 2 digits (eg $i=FF, $j=00 & $y=DD ==> #FF00DD)
        ******************************************************************/
        
    echo "<tr>";
            for(
    $j 0$j <= 15$j+=3) {
                for(
    $y 0$y <= 15$y+=3){
                    
    //Collect all loops as a color code
                    
    $chClr "#".$num[$i].$num[$j].$num[$y];
                    
    //Show all colors as a chart.
                    //----------------yahan bhi change kia hay-----------------//
                    
    echo "<td width=10 height=10 bgColor=".$chClr." onClick='SelectColor(\"$chClr\", 1)'></td>";
                }
            }
            echo 
    "</tr>";
        }
    echo 
    "</table><br />";

    ?>
    </head>
    <body>
    Selected Color is :
    <div style="width:100px; Height:100px;background-color=red" id="Chosed_Color"></div>
    </body>
    </html>


    In rain all birds occupy shelter, but Eagle is the only 1 that avoids rain by flying above the clouds.



  3. #3
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    38
    Gender
    Male
    Posts
    1,609
    Threads
    51
    Credits
    1,311
    Thanked
    9

    Default

    Thanks alot Shakeel Bhaie.
    You're really great...
    Bundle of thanks

  4. #4
    ahsanshah is offline Member
    Last Online
    6th March 2014 @ 07:03 PM
    Join Date
    02 Dec 2007
    Gender
    Male
    Posts
    1,542
    Threads
    217
    Thanked
    56

    Wink

    Quote loverahiplus said: View Post
    Assalam-o-laikum Sathio main ny PHP mai aik colors chart banaya hai umeed hai color chart tu aapko zror pasand aiega....

    Mere s Charts ki tamam credit mere muazez ustad SHAKEEL ko jati hai jes say mai ny PHP seekha (Taham mai ny kam seekha hai par seekha tu unhe sy hai)...

    Mere s torde se koshesh k baary mai please zror comments deen (Khaas kar PHP exports)...

    PHP Code:
    <html>
    <head>
    <title>Colors Chart by Kashif Ahmad (LoveRahiPlus)</title>

    <script>
    //Creat Function that apply/change selected/choosed color...
    function SelectColor(thisClr, chooseIt){
        /***********************************************************************
        if the color select from color chart(giving) the value will return 1 and 
        the clicked/choosed color will change successfully. Otherwise Color will
        not change.
        ************************************************************************/
        if (chooseIt==1){
            //Apply selected/choosed color to the place to be colored.
            Chosed_Color.innerHTML= "<center><i>New<br />color<br />"
                    +thisClr+"<br />changed<br />successfully.</i></center>"
        }
    }
    </script>


    <?php
    //starting from the table
    echo "<table border='0.05pt'>";
        
    //All Colors codes/numbers in hexadecimal format is arraied.
        
    $num = Array ("00""11""22""33""44""55""66""77""88""99""AA""BB""CC""DD""EE""FF");
        for(
    $i 0$i <= 15$i+=3){    
        
    /******************************************************************
            Start another line after completing 1st loop ($i, $j, $y);
            $i used for 1st 2 digits, $j for middle ones while $ used
            for last 2 digits (eg $i=FF, $j=00 & $y=DD ==> #FF00DD)
        ******************************************************************/
        
    echo "<tr>";
            for(
    $j 0$j <= 15$j+=3) {
                for(
    $y 0$y <= 15$y+=3){
                    
    //Collect all loops as a color code
                    
    $chClr "#".$num[$i].$num[$j].$num[$y];
                    
    //Show all colors as a chart.
                    
    echo "<a href='javascript:SelectColor(\"$chClr\", 1)'>
                    <td width=10 height=10 bgColor="
    .$chClr.">
                    </td></a>"
    ;
                }
            }
            echo 
    "</tr>";
        }
    echo 
    "</table><br />";

    ?>
    </head>
    <body>
    Selected Color is :
    <div style=
        "width:100px; Height:100px;background-color=red" 
        id=Chosed_Color>
    </div>
    </body>
    </html>
    Mere Codes mai chaahta hoon k Choosed_Color k rang bhe same osi traah hoo jo mai ny select kia ho....mai ny tu bahot koshesh ki par nakaam raha...Please export help me....
    How can i change the color of Chosed_Color (DIV) background color to the selected one?

    Aap ka Shukria
    Kashif Ahmad
    (LoveRahiPlus)
    Quote shakeel said: View Post
    -----------------------------------------------------------------------
    Buhat achay, kia baat hay. main nay app kay code ko thora change kia hay or ab app jis color per click karain gai to wo color Chosed_Color main nazar aee ga. main nay Firefox or Explorer dono per check kia hay.

    PHP Code:
    <html>
    <head>
    <title>Colors Chart by Kashif Ahmad (LoveRahiPlus)</title>

    <script>
    //Creat Function that apply/change selected/choosed color...
    function SelectColor(thisClr, chooseIt){
        /***********************************************************************
        if the color select from color chart(giving) the value will return 1 and 
        the clicked/choosed color will change successfully. Otherwise Color will
        not change.
        ************************************************************************/
        if (chooseIt==1){
            //Apply selected/choosed color to the place to be colored.
            //--------------yaha per change kia hay----------------------//
            document.getElementById("Chosed_Color").style.background=thisClr;
        }
    }
    </script>


    <?php
    //starting from the table
    echo "<table border='0.05pt'>";
        
    //All Colors codes/numbers in hexadecimal format is arraied.
        
    $num = Array ("00""11""22""33""44""55""66""77""88""99""AA""BB""CC""DD""EE""FF");
        for(
    $i 0$i <= 15$i+=3){    
        
    /******************************************************************
            Start another line after completing 1st loop ($i, $j, $y);
            $i used for 1st 2 digits, $j for middle ones while $ used
            for last 2 digits (eg $i=FF, $j=00 & $y=DD ==> #FF00DD)
        ******************************************************************/
        
    echo "<tr>";
            for(
    $j 0$j <= 15$j+=3) {
                for(
    $y 0$y <= 15$y+=3){
                    
    //Collect all loops as a color code
                    
    $chClr "#".$num[$i].$num[$j].$num[$y];
                    
    //Show all colors as a chart.
                    //----------------yahan bhi change kia hay-----------------//
                    
    echo "<td width=10 height=10 bgColor=".$chClr." onClick='SelectColor(\"$chClr\", 1)'></td>";
                }
            }
            echo 
    "</tr>";
        }
    echo 
    "</table><br />";

    ?>
    </head>
    <body>
    Selected Color is :
    <div style="width:100px; Height:100px;background-color=red" id="Chosed_Color"></div>
    </body>
    </html>

    Salam...

    thanks lover main sakeel bahi......Sada salamat wa abad rahain

    app kay lia dua go ...

  5. #5
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    38
    Gender
    Male
    Posts
    1,609
    Threads
    51
    Credits
    1,311
    Thanked
    9

    Default

    @Ahsanshah aap ka be bahot bahot shukria...

  6. #6
    ahsanshah is offline Member
    Last Online
    6th March 2014 @ 07:03 PM
    Join Date
    02 Dec 2007
    Gender
    Male
    Posts
    1,542
    Threads
    217
    Credits
    0
    Thanked
    56

    Lightbulb thanks

    Quote loverahiplus said: View Post
    @Ahsanshah aap ka be bahot bahot shukria...
    salam...

    welcome bahi jaan

    sada salamat wa abad rahain

  7. #7
    Join Date
    14 Feb 2009
    Location
    Faisalabad
    Posts
    205
    Threads
    23
    Thanked
    2

    Post Kia app mujh se naraaz hein............?

    Quote shakeel said: View Post
    -----------------------------------------------------------------------
    Buhat achay, kia baat hay. main nay app kay code ko thora change kia hay or ab app jis color per click karain gai to wo color Chosed_Color main nazar aee ga. main nay Firefox or Explorer dono per check kia hay.

    PHP Code:
    <html>
    <head>
    <title>Colors Chart by Kashif Ahmad (LoveRahiPlus)</title>

    <script>
    //Creat Function that apply/change selected/choosed color...
    function SelectColor(thisClr, chooseIt){
        /***********************************************************************
        if the color select from color chart(giving) the value will return 1 and 
        the clicked/choosed color will change successfully. Otherwise Color will
        not change.
        ************************************************************************/
        if (chooseIt==1){
            //Apply selected/choosed color to the place to be colored.
            //--------------yaha per change kia hay----------------------//
            document.getElementById("Chosed_Color").style.background=thisClr;
        }
    }
    </script>


    <?php
    //starting from the table
    echo "<table border='0.05pt'>";
        
    //All Colors codes/numbers in hexadecimal format is arraied.
        
    $num = Array ("00""11""22""33""44""55""66""77""88""99""AA""BB""CC""DD""EE""FF");
        for(
    $i 0$i <= 15$i+=3){    
        
    /******************************************************************
            Start another line after completing 1st loop ($i, $j, $y);
            $i used for 1st 2 digits, $j for middle ones while $ used
            for last 2 digits (eg $i=FF, $j=00 & $y=DD ==> #FF00DD)
        ******************************************************************/
        
    echo "<tr>";
            for(
    $j 0$j <= 15$j+=3) {
                for(
    $y 0$y <= 15$y+=3){
                    
    //Collect all loops as a color code
                    
    $chClr "#".$num[$i].$num[$j].$num[$y];
                    
    //Show all colors as a chart.
                    //----------------yahan bhi change kia hay-----------------//
                    
    echo "<td width=10 height=10 bgColor=".$chClr." onClick='SelectColor(\"$chClr\", 1)'></td>";
                }
            }
            echo 
    "</tr>";
        }
    echo 
    "</table><br />";

    ?>
    </head>
    <body>
    Selected Color is :
    <div style="width:100px; Height:100px;background-color=red" id="Chosed_Color"></div>
    </body>
    </html>
    Shakeel bhayee kia app mujh say naraz hein mein nay app ko kitni emails aur private messages bhaijay laikin app nay aik ka bhi jawaab nahin dia .... Agar app naraz hein tou mein maafi chahta hoon kisi bhi aisi baat say jis say app mujh say naraz huway.....

  8. #8
    naqshbandios_limra's Avatar
    naqshbandios_limra is offline Senior Member+
    Last Online
    27th March 2023 @ 04:00 PM
    Join Date
    28 Aug 2008
    Age
    38
    Gender
    Male
    Posts
    4,267
    Threads
    499
    Credits
    1,323
    Thanked
    626

    Default

    Zabardast. Boohat khoob loverahi bhai aur Shakeel bhai, edit karne ka bohat bohat shukria, man abhi check karta hon,

    Jezak Allah, khush rahye
    Wassalam,
    Khanqah Daruslam

  9. #9
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    38
    Gender
    Male
    Posts
    1,609
    Threads
    51
    Credits
    1,311
    Thanked
    9

    Default

    Thanks alot.....

  10. #10
    BossisBack is offline Advance Member
    Last Online
    5th January 2022 @ 11:51 AM
    Join Date
    18 Dec 2007
    Location
    Saudia Arabia
    Age
    34
    Posts
    16,205
    Threads
    743
    Credits
    109
    Thanked
    47

    Default

    Moved to GD
    آئی ٹی دنیامیں سیگنیچرز میں اتنے بڑے سائز کی امیج لگانا سختی کے ساتھ منع ہے۔۔۔آئی ٹی دنیا ٹیم

Similar Threads

  1. ios chart
    By MUZZAMMALL in forum Apple Iphone , IPAD, and Apple Products
    Replies: 18
    Last Post: 18th May 2013, 10:52 PM
  2. exel chart
    By lalayousuf in forum Ask an Expert
    Replies: 3
    Last Post: 13th April 2013, 01:29 PM
  3. Need Police Chart
    By umaisnisari in forum Ask an Expert
    Replies: 21
    Last Post: 29th October 2011, 02:09 PM
  4. flow chart
    By IT Power in forum Ask an Expert
    Replies: 2
    Last Post: 9th August 2008, 12:17 PM

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
  •