WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 21.02.2001, 20:51   #1
snowman
Inventar
 
Registriert seit: 26.09.1999
Beiträge: 2.569


Standard

<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!
snowman ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 03:49 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag