Hi,
ich habe vor einen Osterkalender zu programmieren für meine Hompage.
Das Image Map war schnell erstellt und nach einigen kurzen Überlegungen auch das Ausgabe Script. Allerdings bin ich noch ein Neuling und suche verzweifelt eine Möglichkeit das Image Map mit der echo Ausgabe zu verbinden.
Wisst ihr vielleicht eine Lösung ?
Hier mein Script:
<img src="kalender1.png" width="1150" height="300" border="0" usemap="#kalender" />
<map name="kalender">
<!-- #$-:Image map file created by GIMP Image Map plug-in -->
<!-- #$-:GIMP Image Map plug-in by Maurits Rijk -->
<!-- #$-:Please do not edit lines starting with "#$" -->
<!-- #$VERSION:2.3 -->
<!-- #$AUTHOR:Logan -->
<area shape="poly" coords="42,248,44,246,14,244,13,271,68,293,83,242,55,228" href="tag5.html"/>
<area shape="poly" coords="112,116,126,131,94,115,83,135,46,116,36,157,89,213,105,229,135,182,141,153,129,129" href="tag8.html"/>
<area shape="poly" coords="198,157,242,175,261,110,235,87,220,95,218,114,185,107,182,135" href="tag3.html"/>
<area shape="poly" coords="204,195,188,174,155,186,145,211,159,254,177,288,241,241,246,205,227,184,202,200" href="tag12.html"/>
<area shape="poly" coords="323,157,293,141,278,161,276,191,292,221,329,246,341,258,364,217,370,187,376,155,356,124,334, 133,322,160,299,143" href="tag7.html"/>
<area shape="poly" coords="439,177,423,160,404,170,398,202,411,233,452,267,476,219,483,175,474,156,452,153" href="tag1.html"/>
<area shape="poly" coords="598,206,567,189,552,211,557,238,609,289,643,221,636,191,611,179,592,199" href="tag4.html"/>
<area shape="poly" coords="539,88,515,82,503,104,510,133,527,147,558,165,578,175,593,100,588,81,573,68,550,73,546,90,54 8,104,540,93" href="tag13.html"/>
<area shape="poly" coords="630,30,622,65,654,139,705,93,714,67,711,36,693,23,671,38,654,14" href="tag2.html"/>
<area shape="poly" coords="767,105,762,89,735,83,718,95,710,115,716,138,720,162,724,183,749,180,768,172,790,163,808,153 ,812,137,803,115,787,102,764,108" href="tag11.html"/>
<area shape="poly" coords="943,153,930,145,906,143,892,155,892,172,894,189,906,200,923,217,939,224,952,234,964,241,982, 213,996,186,1003,165,998,143,987,129,965,126,948,137" href="tag9.html"/>
<area shape="poly" coords="404,86,397,73,374,72,365,89,375,109,385,136,429,119,434,101,421,86" href="tag10.html"/>
<area shape="poly" coords="856,36,832,22,816,39,815,69,839,99,881,128,903,97,913,69,917,43,906,22,885,11,868,23,860,39" href="tag6.html"/>
<area shape="poly" coords="1057,47,1037,30,1017,20,998,39,994,61,1002,84,1027,103,1051,128,1064,141,1083,119,1104,100,1 117,73,1113,41,1091,25,1072,25" href="tag14.html"/>
</map>
<?php
$heute=date("j");
$tag=1;
switch(true)
{
case($tag == $heute):
echo
break;
case($tag < $heute):
echo "früher";
break;
case($tag > $heute):
echo "später";
break;
}
So habe ich dann insgesamt 14 Tage erstellt.
Doch wie setze ich hinter echo die imagemap, damit stets zum richtigen Tag sich die richtige Datei öffnet ?
Ich danke euch im voraus für eure Hilfe.
ich habe vor einen Osterkalender zu programmieren für meine Hompage.
Das Image Map war schnell erstellt und nach einigen kurzen Überlegungen auch das Ausgabe Script. Allerdings bin ich noch ein Neuling und suche verzweifelt eine Möglichkeit das Image Map mit der echo Ausgabe zu verbinden.
Wisst ihr vielleicht eine Lösung ?
Hier mein Script:
<img src="kalender1.png" width="1150" height="300" border="0" usemap="#kalender" />
<map name="kalender">
<!-- #$-:Image map file created by GIMP Image Map plug-in -->
<!-- #$-:GIMP Image Map plug-in by Maurits Rijk -->
<!-- #$-:Please do not edit lines starting with "#$" -->
<!-- #$VERSION:2.3 -->
<!-- #$AUTHOR:Logan -->
<area shape="poly" coords="42,248,44,246,14,244,13,271,68,293,83,242,55,228" href="tag5.html"/>
<area shape="poly" coords="112,116,126,131,94,115,83,135,46,116,36,157,89,213,105,229,135,182,141,153,129,129" href="tag8.html"/>
<area shape="poly" coords="198,157,242,175,261,110,235,87,220,95,218,114,185,107,182,135" href="tag3.html"/>
<area shape="poly" coords="204,195,188,174,155,186,145,211,159,254,177,288,241,241,246,205,227,184,202,200" href="tag12.html"/>
<area shape="poly" coords="323,157,293,141,278,161,276,191,292,221,329,246,341,258,364,217,370,187,376,155,356,124,334, 133,322,160,299,143" href="tag7.html"/>
<area shape="poly" coords="439,177,423,160,404,170,398,202,411,233,452,267,476,219,483,175,474,156,452,153" href="tag1.html"/>
<area shape="poly" coords="598,206,567,189,552,211,557,238,609,289,643,221,636,191,611,179,592,199" href="tag4.html"/>
<area shape="poly" coords="539,88,515,82,503,104,510,133,527,147,558,165,578,175,593,100,588,81,573,68,550,73,546,90,54 8,104,540,93" href="tag13.html"/>
<area shape="poly" coords="630,30,622,65,654,139,705,93,714,67,711,36,693,23,671,38,654,14" href="tag2.html"/>
<area shape="poly" coords="767,105,762,89,735,83,718,95,710,115,716,138,720,162,724,183,749,180,768,172,790,163,808,153 ,812,137,803,115,787,102,764,108" href="tag11.html"/>
<area shape="poly" coords="943,153,930,145,906,143,892,155,892,172,894,189,906,200,923,217,939,224,952,234,964,241,982, 213,996,186,1003,165,998,143,987,129,965,126,948,137" href="tag9.html"/>
<area shape="poly" coords="404,86,397,73,374,72,365,89,375,109,385,136,429,119,434,101,421,86" href="tag10.html"/>
<area shape="poly" coords="856,36,832,22,816,39,815,69,839,99,881,128,903,97,913,69,917,43,906,22,885,11,868,23,860,39" href="tag6.html"/>
<area shape="poly" coords="1057,47,1037,30,1017,20,998,39,994,61,1002,84,1027,103,1051,128,1064,141,1083,119,1104,100,1 117,73,1113,41,1091,25,1072,25" href="tag14.html"/>
</map>
<?php
$heute=date("j");
$tag=1;
switch(true)
{
case($tag == $heute):
echo
break;
case($tag < $heute):
echo "früher";
break;
case($tag > $heute):
echo "später";
break;
}
So habe ich dann insgesamt 14 Tage erstellt.
Doch wie setze ich hinter echo die imagemap, damit stets zum richtigen Tag sich die richtige Datei öffnet ?
Ich danke euch im voraus für eure Hilfe.
Kommentar