Utente:Timendum/ToolbarButton.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m prova +1
m +1 -1
Riga 58:
imag.setAttribute('alt','[Wik]');
imag.setAttribute('title','{{wikificare}}');
tmp.appendChild(imag);
toolbar.appendChild(tmp);
tmp = document.createElement("a");
tmp.id = 'tb-aiu';
tmp.href = 'javascript:(function() {wpTextbox1=document.getElementById("wpTextbox1");wpTextbox1.value="{{da aiutare|motivo="+(prompt("Motivo"))+"|data='+mese+' '+anno+'}}\\n"+wpTextbox1.value;summ=document.getElementById("wpSummary");summ.value=summ.value+"+{{da aiutare}}";})();';
imag = document.createElement("img");
imag.setAttribute('src','http://upload.wikimedia.org/wikipedia/it/2/23/Aiutino.gif');
imag.setAttribute('alt','[Aiu]');
imag.setAttribute('title','{{da aiutare}}');
tmp.appendChild(imag);
toolbar.appendChild(tmp);
Line 65 ⟶ 75:
tmp.href = 'javascript:(function() {wpTextbox1=document.getElementById("wpTextbox1");wpTextbox1.value="{{più}}\\n"+wpTextbox1.value;summ=document.getElementById("wpSummary");summ.value=summ.value+"+{{più}}";})();';
var imag = document.createElement("img");
imag.setAttribute('src','http://itupload.wikipediawikimedia.org/wikiwikipedia/commons/thumb/9/94/Immagine:Symbol_support_vote.svg/180px-Symbol_support_vote.svg.png');
imag.setAttribute('alt','[+1]');
imag.setAttribute('title','voto +1');
tmp.appendChild(imag);
toolbar.appendChild(tmp);
 
tmp = document.createElement("a");
tmp.id = 'tb-aiumeno';
tmp.href = 'javascript:(function() {wpTextbox1=document.getElementById("wpTextbox1");wpTextbox1.value="{{da aiutare|motivo="+(prompt("Motivo"))+"|data='+mese+' '+anno+'meno}}\\n"+wpTextbox1.value;summ=document.getElementById("wpSummary");summ.value=summ.value+"+{{da aiutarepiù}}";})();';
var imag = document.createElement("img");
imag.setAttribute('src','http://upload.wikimedia.org/wikipedia/itcommons/2thumb/237/Aiutino7f/Symbol_oppose_vote.svg/180px-Symbol_oppose_vote.svg.gifpng');
imag.setAttribute('alt','[Aiu-1]');
imag.setAttribute('title','{{davoto aiutare}}-1');
tmp.appendChild(imag);
toolbar.appendChild(tmp);