today=new Date();
jran=today.getTime();
var anzahl = 5; // Anzahl der Bilder
var random_number="";
var image="";
var text_color="";
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
random_number = Math.ceil( (jran/(im*1.0)) * anzahl);
if (random_number==1) {
text_color="000000";
image="image/bild01.jpg";
text="Bild 01"
}
if (random_number==2) {
text_color="#FF0000";
image="image/bild02.jpg";
text="Bild 02"
}
if (random_number==3) {
text_color="#00BF00";
image="image/bild03.jpg";
text="Bild 03"
}
if (random_number==4) {
text_color="#0090E0";
image="image/bild04.jpg";
text="Bild 04"
}
if (random_number==5) {
text_color="#BF0000";
image="image/bild05.jpg";
text="Bild 05"
}
if (random_number==6) {
text_color="#AF00FF";
image="bild02b.jpg";
text="Bild 06"
}
if (random_number==7) {
text_color="#00AFAF";
image="bild02c.jpg";
text="Bild 07"
}
function bild1() {
document.write("<img src='" + image + "' width='230' height='160' border='1' alt='Text'><br><br>")
document.write("<font color=#" + text_color +"'>" + text + "</font><br>")
return
} |