Was passiert
Gedichte
Dazu
ne 'Story
Aneinandergereiht
Programmierung
Thematik
Zusatz
Links
Helpers
Spiele
Eddie Live
Getextebuch


Autor: Eddie
Letzte Änderung am: 01.12.2004

Zu der Erklärung
<?php
///////////////// Anzeige Tuerchen 2004 ///////////////////

$bilder="./inhalte/tuerchen2/bilder/";

echo 
"<div style=\"position:absolute;top:50; left:200;\">
    <img src=\""
.$bilder."weihnachtseddie.jpg\" alt=\"\">";

$heute=getdate();
$monat=$heute['mon'];
$tag=$heute['mday'];

//////// Erstellt Türzufall /////////
srand((double)microtime() * 10000000);
$var = 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");
$rand_var array_rand($var,24);

$startx=0;
$start=$starty=0;
$breite=95;
$i=0;

////////// Anornden der links ///////////// 
        
for($x=0;$x<10;$x++)
        {
        if(
$var[$rand_var[$x]] <= $tag ||  $monat!=12)
        {
        
$anz="<a href=\"./thetuxworld.php?datei=tag".$var[$rand_var[$x]]."&amp;id=25\">
            <img src=\""
.$bilder.$var[$rand_var[$x]].".gif\" border=\"0\" alt=\"\">
            </a>"
;
        }
        else
        {
        
$anz="<img src=\"".$bilder.$var[$rand_var[$x]].".gif\" alt=\"\">";
        }
        echo 
"<div style=\"position:absolute;top:".$startx.";left:".$start.";\">
            
$anz
            </div>"
;
        
$start=$start+$breite;
        
$i++;
            if(
$i>1)
        {
        
$startx=$startx+96;
        
$start=$starty;
        
$i=0;
        }
    }

$startx=0;
$start=$starty=390;
$breite=83;
$i=0;

    for(;
$x<24;$x++)
    {
        if(
$var[$rand_var[$x]] <= $tag || $monat!=12 )
            {
            
$anz="<a href=\"./thetuxworld.php?datei=tag".$var[$rand_var[$x]]."&amp;id=25\">
                <img src=\""
.$bilder.$var[$rand_var[$x]].".gif\" border=\"0\" alt=\"\">
                </a>"
;
            }
            else
            {
               
$anz="<img src=\"".$bilder.$var[$rand_var[$x]].".gif\" alt=\"\">";
            }
    
        echo 
"<div style=\"position:absolute;top:".$startx.";left:".$start.";\">
                
$anz
                </div>"
;
        
$start=$start+$breite;
        
$i++;
                if(
$i>2)
                {
                
$startx=$startx+96;
                
$start=$starty;
                
$i=0;
                }
    }

echo 
"</div>";

?>