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
 
(Nu s-au afișat 5 versiuni intermediare efectuate de același utilizator)
Linia 1: Linia 1:
(function((cash)) {
(function( $ ) {
$(document).ready(function() {
$(document).ready(function() {
var el=$(".AlizeeaSig")
var el=$(".AlizeeaSig")
textSigIndex = 0;
textSigIndex = 0;
textSig = new Array;
textSig = new Array;
textSig[0] = "Administrator Forum";
textSig[0] = "Am Fost";
textSig[1] = "Speed Config";
textSig[1] = "Forum Admin";
textSig[2] = "Wiki Administrator";
textSig[2] = "Am Fost";
textSig[3] = "Speed Config";
textSig[4] = "Am 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/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 curentă din 19 aprilie 2011 08:56

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