How to change the logo of theme,when date changes
<p>Here i have a code working with calender.on particular day image is display.But i want to create a  change the logo of theme when date changes.Pls help me to  sort this problem
Her is my code:</p>

<p></p>

<p>table {</p>

<pre><code>width: auto;

border:0px solid #888;    

border-collapse:collapse;
</code></pre>

<p>}</p>

<p>tr{</p>

<pre><code>height: 20px;

}
</code></pre>

<p>td {</p>

<pre><code>font-family: Arial, sans-serif;

border-collapse:collapse;

border:1px solid #888;

text-align:center;

width: 270px;
</code></pre>

<p>}</p>

<p>.calblock{</p>

<pre><code>float:none;
</code></pre>

<p>}</p>

<p>.onecal{</p>

<pre><code>vertical-align:top;

background-color: #E9ECEF;
</code></pre>

<p>}</p>

<p>.cal{</p>

<pre><code>border-style:solid;

border-width:thin;

border-color:#E9ECEF;

float:left;

padding:3px;
</code></pre>

<p>}</p>

<p>.days{</p>

<pre><code>background-color: #F1F3F5;
</code></pre>

<p>}</p>

<p>.hasday{</p>

<pre><code>background-color: #FFFFDE;
</code></pre>

<p>}</p>

<p>.splday{</p>

<pre><code>background-color: red;
</code></pre>

<p>}</p>

<p>.noday{</p>

<pre><code>background-color: #E9ECEF;
</code></pre>

<p>}</p>

<p>th {</p>

<pre><code>font-family: Arial, sans-serif;

border-collapse:collapse;

border:1px solid #888;

background-color: #E9ECEF;
</code></pre>

<p>}</p>

<p></p>

';



      ECHO '  '.$today['month']."&nbsp;&nbsp;&nbsp;".$today['year']."";



   //$image =ARRAY('image1.png','image2.png','image3.png','image4.png');    

        $mn = ARRAY('Jan','Feb','Mar','Apr','May','Jun','July','Aug','Sep','Oct','Nov','Dec');

        $days =ARRAY('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16',

                        '17','18','19','20','21','22','23','24','25','26','27','28','29',

                        '30','31');

            $t=date("M");

            $a=date('j');

            if ($t=="$mn[0]")

                {

                    if($a=="$days[13]")

                    {

                     ECHO ' ';

                 }

                }

        else if($t=="$mn[1]"){

                        if($a=="$days[13]")

                    {

                     ECHO ' ';

                 }

                    }

        else if($t=="$mn[2]"){

                        if($a=="$days[27]")

                    {

                     ECHO ' ';

                 }

                    }

        else if($t=="$mn[3]"){

                        if($a=="$days[13]")

                    {

                     ECHO ' ';

                 }

        }

        else if($t=="$mn[4]"){

                        if($a=="$days[13]")

                    {

                     ECHO ' ';

                 }

                    }

        else if($t=="$mn[5]"){

                        if($a=="$days[8]")

                    {

                     ECHO ' ';

                 }

                    }

        else if($t=="$mn[6]"){

                        if($a=="$days[8]")

                    {

                     ECHO ' ';

                 }

        }

        else if($t=="$mn[7]"){

                        if($a=="$days[14]")

                    {

                     ECHO ' ';

                 }

                    }

        else if($t=="$mn[8]"){

                            if($a=="$days[4]")

                    {

                     ECHO ' ';

                    }

                    }

        else if($t=="$mn[9]"){

                            if($a=="$days[19]")

                    {

                     ECHO ' ';

                    }

        }

        else if($t=="$mn[10]"){

                        if($a=="$days[13]")

                    {

                     ECHO ' ';

                    }

                }

        else if($t=="$mn[11]"){

                        if($a=="$days[24]")

                    {

                     ECHO ' ';

                 }

        }

    ECHO '';

        $dayText = ARRAY ( // this array is used to simplify the display of calendar headers

        // the entries just specify the text to show for the days in the header

        0 => 'Su','Mo','Tu','We','Th','Fr','Sa',

        // duplicate the first 6 entries to simplify display of calendar headers in a loop

        'Su','Mo','Tu','We','Th','Fr'

    );



    FOR ($i=0;$i'.$dayText[$firstDayOfWeek + $i].'';



    }

    ECHO '';

    ECHO '';

    // Display the first calendar row with correct start of week

    IF ( $firstDayOfWeek  ';

    }

    $actday = 1; // used to count and represent each day

    // Note: loop below starts using the residual value of $i from loop above 



    FOR( /* use value of $i resulting from last loop*/ ;$i'.$actday++.'';

                    }



                ECHO ''.$actday++.'';





    }   

    ECHO '';



    // Get how many complete weeks are in the actual month



    $fullWeeks = FLOOR(($lastDay['mday']-$actday)/7);



    FOR ($i=0;$i';



                FOR ($j=0;$j'.$actday++.'';

                    }



                 ELSE ECHO ''.$actday++.'';



                    } 





        ECHO '';

    }



    //Now display the partial last week of the month (if there is one)

    IF ($actday ';



        FOR ($i=0;$i'.$actday++.'';

                    }



                 ELSE ECHO ''.$actday++.'';

            }

            ELSE {

                ECHO '';

            }

        }

        ECHO '';

    }



    ECHO '';

}



/*  demo execution starts here

    This demo example uses showCalendar to package 12 months into 3 rows.

    It defaults to start in the current month.

*/

    $useDefault = TRUE;  // to always start in a particular month, set this false and see (A) below

    IF ($useDefault) { // start at current month

        $thisDay    = GETDATE(); 

        $startMonth = $thisDay['mon'];

        $startYear = $thisDay['year'];

    }

    ELSE {

        $startMonth = 1;   // (A) start at specified month ... January, 2011 in this case

        $startYear = 2011; 

    }



IF ($block = 1) { // there are 3 blocks 

    ECHO '';

    if ($calcount=1) { // each block holds 4 months

            ECHO '';

            showCalendar( $startMonth++,$startYear, 1 /* start all weeks on Monday (1) */);  

            ECHO '';

        }

        ECHO '';

    }

?> 
