Hey,
ich suche ein Javascript zumindest denke ich mal das es mit java machbar ist. Also dieses script sollte alle 20 Minuten ein Bild ändern und einen 2 Texte. Jedoch soll es nach Serverzeit gehen wenn man das so nennt
. Also sprich 20 Minuten das Bild danach ein anderes, jedoch nicht nach 20 Minuten aufenthalt auf der Seite sondern jede 20 Minuten egal ob man auf der Seite ist oder auch nicht.
window.setTimeout(machDiesUndDas(), 1200000);
function machDiesUndDas(){
var count = 0;
var maxCount = 2; // Anzahl der Bilder / Texte;
/* Pfad und Dateiname der Bilder*/
var imgPath = 'img/';
var imgFilename = 'img';
var imgExtension = '.png';
/* Definition der Texte */
txt = new Array('Dies ist der erste Text.', 'Dies ist der zweite Text.', 'usw...');
/* */
count = (count > maxCount) ? 0 : count;
/* Tauschen der Texte und Bilder; 'changeableIMG' entspricht dem 'name'-Attribut des 'img'-Tags */
document.images['changeableIMG'].src = imgPath + imgFilename + count + imgExtension;
document.getElementById('changeableTXT').innerHTML = txt[count];
/* Erhöhen des Zählers*/
count++;
window.setTimeout(machDiesUndDas(), 1200000);
}
hab ich ma so ausm kopf runtergeschrieben - guck ma, ob du was damit anfangen kannst...
If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.
After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.
In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.
Sign up now and enjoy the advantages as a registered member.
(This website will be ad-free after a complete free sign up.)