Autor |
Nachricht |
-
mario-website
|
28.11.2010 um 15:02 (UTC) Titel: Bilder am bestimmten Tag anzeigen lassen 2.... |
|
|
ACHTUNG: Thema kann geschlossen werden hab es nun endlich hinbekommen
Hallo
ich habe ja den Code hinbekommen nur irgendwie ist er falsch könnt ihr mir helfen?
Bei mir wird immer noch Halloween als Startseite angeziegt ned normal1.
Wie krieg ich das hin?
Ach und hier der Code^^
Code: <form name="Bildwechsel" id="12,22-12,23" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/winter.gif" alt="" />
</form>
<form name="Bildwechsel" id="12,24-12,24" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/weinachten.gif" alt="" />
</form>
<form name="Bildwechsel" id="12,25-12,30" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/winter.gif" alt="" />
</form>
<form name="Bildwechsel" id="12,31-12,31" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/silvester.gif" alt="" />
</form>
<form name="Bildwechsel" id="1,1-2,1" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/winter.gif" alt="" />
</form>
<form name="Bildwechsel" id="2,2-3,19" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/normal1.gif" alt="" />
</form>
<form name="Bildwechsel" id="3,20-4,20" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/frühling.gif" alt="" />
</form>
<form name="Bildwechsel" id="4,21-4,21" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/normal1.gif" alt="" />
</form>
<form name="Bildwechsel" id="4,22-4,25" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/ostern.gif" alt="" />
</form>
<form name="Bildwechsel" id="4,26-6,20" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/normal1.gif" alt="" />
</form>
<form name="Bildwechsel" id="6,21-7,21" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/sommer.gif" alt="" />
</form>
<form name="Bildwechsel" id="7,22-9,22" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/normal1.gif" alt="" />
</form>
<form name="Bildwechsel" id="9,23-10,23" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/herbst.gif" alt="" />
</form>
<form name="Bildwechsel" id="10,24-10,31" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/halloween.gif" alt="" />
</form>
<form name="Bildwechsel" id="11,1-12,21" action="">
<img height="162" width="670" border="0" src="http://megastar.bplaced.net/Logo/normal1.gif" alt="" />
</form>
<script type="text/javascript">
<!--
if(document.Bildwechsel)
{
var Zeitpunkt = (new Date()).getTime();
var dieses_Jahr = (new Date()).getYear();
var Durchlaeufe = document.Bildwechsel.length;
var eine_Form = Durchlaeufe<1;
if(dieses_Jahr<1900)
dieses_Jahr+=1900;
if(eine_Form)
Durchlaeufe++;
for(var i=0;i<Durchlaeufe;i++)
{
die_Form = eine_Form ? document.Bildwechsel:document.Bildwechsel[i];
with(die_Form.id)
var von_bis = new Array(substring(0,indexOf("-")),substring(indexOf("-")+1));
var Anzeigedaten = new Array();
for(var j=0;j<2;j++)
Anzeigedaten[j] = eval("new Date("+dieses_Jahr+","+von_bis[j]+")").getTime()+(j<1 ? 0:86400000);
if((Zeitpunkt<Anzeigedaten[0])||(Zeitpunkt>Anzeigedaten[1]))
die_Form.style.display = "none";
}
}
//-->
</script>
Zuletzt bearbeitet von mario-website am 07.12.2010, 21:21, insgesamt 2-mal bearbeitet
|
|
↑
|
|
|
-
gameshop
|
28.11.2010 um 21:29 (UTC) Titel: |
|
|
Das ist ein komischer code. Gibt bessere ______________ Video Portal Unplugged
Neues Gewinnspiel #1
Neues Gewinnspiel #2 |
|
↑
|
|
|
-
mario-website
|
29.11.2010 um 12:36 (UTC) Titel: |
|
|
|
|
↑
|
|
|
-
gameshop
|
29.11.2010 um 12:59 (UTC) Titel: |
|
|
Code: <script type="text/javascript">
var bild = "";
var jetzt = new Date();
var Std = jetzt.getHours();
if (Std >= 6 && Std < 10) {
bild = "day1.png";
} else if (Std >= 10 && Std < 12) {
bild = "day2.png";
} else if (Std == 12) {
bild = "highnoon.png";
} else if (Std >= 12 && Std < 16) {
bild = "day3.png";
} else if (Std >= 16 && Std < 19) {
bild = "day4.png";
} else if (Std >= 19 && Std < 21) {
bild = "night1.png";
} else if (Std >= 22 && Std <= 23) {
bild = "night2.png";
} else if (Std >= 24) {
bild = "midnight.png";
} else if (Std >= 1 && Std < 3) {
bild = "night3.png";
} else if (Std >= 4 && Std < 5) {
bild = "night4.png";
}
document.write('<img src="http://www.psd-tutorials.de/modules/Forum/images/uhr/' + bild + '" />');
</script> ______________ Video Portal Unplugged
Neues Gewinnspiel #1
Neues Gewinnspiel #2
|
|
↑
|
|
|
-
mario-website
|
|
↑
|
|
|
-
gameshop
|
|
↑
|
|
|
-
mario-website
|
30.11.2010 um 13:56 (UTC) Titel: |
|
|
|
|
↑
|
|
|
-
mario-website
|
30.11.2010 um 14:05 (UTC) Titel: |
|
|
|
|
↑
|
|
|
-
gameshop-new
|
30.11.2010 um 20:29 (UTC) Titel: |
|
|
wenn ich die daten und die bilder bekomme gerne =) |
|
↑
|
|
|
-
mario-website
|
01.12.2010 um 14:47 (UTC) Titel: |
|
|
|
|
↑
|
|
|
-
gameshop-new
|
01.12.2010 um 15:15 (UTC) Titel: |
|
|
schreib es so:
datum uhrzeit bild
12.04.2010 http://....../asd.jpg
... ...
dann kann ich es für dich machen wenn du die auflistung gemacht hast
gruß
daniel |
|
↑
|
|
|
-
mario-website
|
01.12.2010 um 15:31 (UTC) Titel: |
|
|
|
|
↑
|
|
|
-
mario-website
|
06.12.2010 um 16:11 (UTC) Titel: |
|
|
|
|
↑
|
|
|
-
gameshop-new
|
06.12.2010 um 16:23 (UTC) Titel: |
|
|
die daten stimmen noch nicht mal richtig |
|
↑
|
|
|
-
mario-website
|
07.12.2010 um 14:13 (UTC) Titel: |
|
|
|
|
↑
|
|
|
|