Global.js: Diferență între versiuni

De la Tribalwars Wiki RO
Jump to navigation
(Pagină nouă: (function((cash)) { $(document).ready(function() { var el=$(".AlizeeaSig") textSigIndex = 0; textSig = new Array; textSig[0] = "Administrator Forum"; textSig[1] = "Speed Config"; text...)
 
Fără descriere a modificării
Linia 8: Linia 8:
textSig[2] = "Wiki Administrator";
textSig[2] = "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/d/d5/Alizeea.png')"});
$(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>");
$(elm).html("<label id='sigText' style='position: relative; top: 150px; left: 200px; font-size: 300%'>"+textSig[textSigIndex]+"</label>");
});
});

Versiunea de la data 5 aprilie 2011 10:12

(function((cash)) { $(document).ready(function() { var el=$(".AlizeeaSig") textSigIndex = 0; textSig = new Array; textSig[0] = "Administrator Forum"; textSig[1] = "Speed Config"; textSig[2] = "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))