![]() |
![]() |
|
![]() |
![]() |
|
Programmierung Rat & Tat für Programmierer |
![]() |
|
Themen-Optionen | Ansicht |
|
![]() |
#1 |
Inventar
![]() Registriert seit: 26.09.1999
Beiträge: 2.569
|
![]() <SCRIPT LANGUAGE="JavaScript"><!--
// the number of pictures to choose from var NumberOfPictures = 3 // creat the array var pict = new BuildArray(NumberOfPictures); // the information for the pictures // replace the [...] with your information pict[1] = "[img 1 src]/" WIDTH=/"[img 1 width]/" HEIGHT=/"[img 1 height]/"" pict[1] = "[img 2 src]/" WIDTH=/"[img 2 width]/" HEIGHT=/"[img 2 height]/"" pict[1] = "[img 3 src]/" WIDTH=/"[img 3 width]/" HEIGHT=/"[img 3 height]/"" /* ....more picture information goes here.... */ // a function used to build arrays function BuildArray(size){ this.length = size for (var i = 1; i <= size; i++){ this[i] = null} return this } // choose the picture var d = new Date() var secs = d.getSeconds() var rnd = (secs % pict.length) + 1 // desplay the new picture with (document){ // start a new paragraph [optional] write("<P ALIGN=/"CENTER/">"); // desplay the picture write("<IMG SRC=/""+pict[rnd]+"ALT=/"/">"); // close the paragraph [optional] write("</P>"); // --></SCRIPT> gruss, snowman
____________________________________
MediaMarkt? Ich bin doch nicht blöd, Mann! Vorsprung durch Technik Lesen Sie keine Anleitungen, FAQs, Readme - Files. Reine Zeitverschwendung. In den Newsgroups und Foren gibt es genug kompetente Leute, die mit großer Geduld immer wieder dieselben einfachen Fragen beantworten. Völlig kostenlos noch dazu! |
![]() |
![]() |
![]() |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|