hey...
also, das ist mein script:
Dieses Script zeigt die oben angegeben Bilder immer zufällig an. Kann ich evtl. durch eine änderung im Script das Bild Tageweise anzeigen lassen? z.B. Bild 1 einen Tag, am nächsten Tag bild 2 und so weiter..? Ich kenn mich damit nich aus, deshalb wär´s toll, wenn mir jmd weiterhelfen könnte!
Das Script in aktion: http://www.timmay.de/smsrotation/rotation.htm
mit F5 wechselt immer das Bild
Gruß
Timmay
also, das ist mein script:
Code:
<script language="JavaScript">
var theImages = new Array() // do not change this
theImages[0] = 'os-tim.jpg'
theImages[1] = 'os-tim2.jpg'
theImages[2] = 'os-tim3.jpg'
theImages[3] = 'os-tim4.jpg'
theImages[4] = 'os-tim5.jpg'
theImages[5] = 'os-tim6.jpg'
theImages[6] = 'os-tim7.jpg'
theImages[7] = 'os-tim8.jpg'
theImages[8] = 'os-tim9.jpg'
theImages[9] = 'os-tim91.jpg'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
//-->
</script>
<center>
<script language="JavaScript">
<!--
showImage();
//-->
</script>
Das Script in aktion: http://www.timmay.de/smsrotation/rotation.htm
mit F5 wechselt immer das Bild
Gruß
Timmay

Comment