willst du hier im forum eine sigrotator haben, dass kannst gleich vergessen, weil das vom forum gesteuret wird.
willst du in einem eigenem forum diese funktion einbauen? dann kannst du das nehmen und als code bzw hack in dein forum einbauen, gibt es aber denk ich auch shcon fertig in diversen foren seiten.
Neinnein..nicht hier dafür hab ich die Berechtigung nicht.
Also, meine frage ist wie macht man diese Zufallsbanner?
Wenn man jetzt zb. im Header also oben ein Zufallsbanner einbaut und wenn man die Seite neu ladet bekommt ein zweite Bild und sowas möchte ich einbauen.
function sigRotate () {
var bildnr = Math.round(Math.random()*6);
eval("document.getElementById('sig').src = 'http://domain.com/sigs/sig_" + bildnr + ".jpg';");
}
Stell vorher sicher das im Ordner 'sigs' auf 'domain.com' Signaturen mit den Namen sig_0.jpg bis sig_9.jpg vorhanden sind (darüber und darunter geht mit meiner Variante nicht). Man kann ja auch Sigs doppelt nehmen
Viel Erfolg mit meinem Spontancode, vllt hilfts dir.
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.)