MediaWiki:Tribalwars.js: Diferență între versiuni

De la Tribalwars Wiki RO
Jump to navigation
(Pagină nouă: [1:46:16 AM | Edited 2:05:50 AM] Norbit: (function((cash)) { $(document).ready(function() { var el=$(".AlizeeaSig") textSigIndex = 0; textSig = new Array; textSig[0] = "Administrator ...)
 
Fără descriere a modificării
Linia 1: Linia 1:
[1:46:16 AM | Edited 2:05:50 AM] Norbit: (function((cash)) {
(function((cash)) {
$(document).ready(function() {
$(document).ready(function() {
var el=$(".AlizeeaSig")
var el=$(".AlizeeaSig")

Versiunea de la data 5 aprilie 2011 07:35

(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/d/d5/Alizeea.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))