Global.js: Diferență între versiuni

De la Tribalwars Wiki RO
Jump to navigation
Fără descriere a modificării
Fără descriere a modificării
Linia 4: Linia 4:
textSigIndex = 0;
textSigIndex = 0;
textSig = new Array;
textSig = new Array;
textSig[0] = "FOST - Forum Admin";
textSig[0] = "Fost";
textSig[1] = "FOST - Speed Config";
textSig[1] = "Forum Admin";
textSig[2] = "FOST - Wiki Administrator";
textSig[2] = "Fost";
textSig[3] = "Speed Config";
textSig[4] = "Fost";
textSig[5] = "Wiki Administrator";
el.each( function(index,elm) {
el.each( function(index,elm) {
$(elm).css({height: "240px", width:"600px", background: "url('http://help.triburile.ro/images/a/a0/Alizeea2.png')"});
$(elm).css({height: "240px", width:"600px", background: "url('http://help.triburile.ro/images/a/a0/Alizeea2.png')"});

Versiunea de la data 19 aprilie 2011 08:55

(function( $ ) { $(document).ready(function() { var el=$(".AlizeeaSig") textSigIndex = 0; textSig = new Array; textSig[0] = "Fost"; textSig[1] = "Forum Admin"; textSig[2] = "Fost"; textSig[3] = "Speed Config"; textSig[4] = "Fost"; textSig[5] = "Wiki Administrator"; el.each( function(index,elm) { $(elm).css({height: "240px", width:"600px", background: "url('http://help.triburile.ro/images/a/a0/Alizeea2.png')"}); $(elm).html("<label id='sigText' style='position: relative; top: 150px; left: 200px; font-size: 300%'>"+textSig[textSigIndex]+"</label>"); }); sigTimer= window.setInterval(function() {

   textSigIndex++;
   if (textSigIndex >= textSig.length) { textSigIndex = 0; }
   var elt = $(".AlizeeaSig #sigText");
   elt.each( function(index,elt) {
   $(elt).fadeOut("fast", function() {
   var elt = $(".AlizeeaSig #sigText");
   elt.html(textSig[textSigIndex]);
   elt.fadeIn("fast");
   });
   });

}, 5000); })}(jQuery))