Utente:Toth~itwiki/monobook.js
Questa pagina definisce alcuni parametri di aspetto e comportamento generale di tutte le pagine. Per personalizzarli vedi Aiuto:Stile utente.
Nota: dopo aver salvato è necessario pulire la cache del proprio browser per vedere i cambiamenti (per le pagine globali è comunque necessario attendere qualche minuto). Per Mozilla / Firefox / Safari: fare clic su Ricarica tenendo premuto il tasto delle maiuscole, oppure premere Ctrl-F5 o Ctrl-R (Command-R su Mac); per Chrome: premere Ctrl-Shift-R (Command-Shift-R su un Mac); per Konqueror: premere il pulsante Ricarica o il tasto F5; per Opera può essere necessario svuotare completamente la cache dal menù Strumenti → Preferenze; per Internet Explorer: mantenere premuto il tasto Ctrl mentre si preme il pulsante Aggiorna o premere Ctrl-F5.
//<pre>
// Elenco dei tool da caricare.
var myButtons = new Array([1,'{{Benvebot}}','0','benvenuto',0,''],[1,'--[[Utente:Toth|<span style="font-variant:small-caps; font-family:Verdana; font-size:13px; color:maroon; font-weight:bold">Toth</span>]] [[Discussioni utente:Toth|<span style="color:orange; font-size:122%"> ? </span>]]~~~~~','0','firma',0,'']);
var toLoad="purg led ns0 lks orol tabs nav stru unw allp tbar avan cwtch popup nms chat cmd qed wed since goo rch edt ver vpop vfol bot linkcomplete qdel lrc";
//Monobook Modulare
//Lancia il vero monobook
// Vedi [[Wikipedia:Monobook.js/MonobookCompleto.js]]
//
document.writeln('<script type="text/javascript" src="/w/index.php?title=Wikipedia:Monobook.js/MonobookCompleto.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//</pre>
//Mostra i Tatoo
document.writeln('<script type="text/javascript" src="/w/index.php?title=Utente:Toth/Tatoo&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//************SET TATOO***********
// adds tab "set tatoo"
addOnloadHook(function ()
{
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
addlilink(tabs,'javascript:setCurrentTatoo()','set tatoo', 'pb-sstatus');
})
function setCurrentTatoo()
{
Greeter = " Inserisci la nuova pagina ";
var div = document.createElement('div');
div.id = 'inlinePopupDiv';
div.style.position = 'absolute';
div.style.zIndex = 1000;
div.style.left = '5px';
div.style.top = '5px';
div.style.padding = '5px';
div.style.backgroundColor = '#FFFFFF';
div.style.borderStyle = 'solid';
div.style.borderWidth = ' medium';
div.style.borderColor = '#000000';
var top = document.createElement('div');
top.id = 'inlinePopupTop';
top.style.textAlign = 'right';
top.style.margin = '8px';
top.style.backgroundColor = '#DDDDDD';
var a = document.createElement('a');
a.appendChild( document.createTextNode('Close'));
a.href = "javascript:void RemoveNode('inlinePopupDiv')";
a.style.margin = '8px';
top.appendChild(a);
div.appendChild(top);
var greet = document.createElement('p');
greet.innerHTML = Greeter;
div.appendChild(greet);
var form = document.createElement('form');
form.name = "popupForm";
var p = document.createElement('p');
p.appendChild(document.createTextNode('Pagina:'));
var stato = document.createElement('input');
stato.name = 'status';
stato.id = 'stato';
stato.type = 'text';
p.appendChild(stato);
var button = document.createElement('input');
button.value = 'OK';
button.type = 'button';
button.setAttribute('onclick', 'saveNewTatoo()');
p.appendChild(button);
form.appendChild(p);
div.appendChild(form);
document.body.appendChild(div);
div.getElementsByTagName('input')[0].focus();
}
function saveNewTatoo()
{
// Questo e' il valore che avevi scritto nella casella di testo
var newTatoo = document.getElementById('stato').value;
var newString = '//LAVORI\n'+
'var Lavori="<div style=\\"position:fixed;background-color:transparent;bottom:10px;right:10px;z-index:1000;display:block\\"><A '+
'HREF=\\"http://it.wikipedia.org/wiki/'+newTatoo+'\\"><IMG '+
'SRC=\\"http://upload.wikimedia.org/wikipedia/commons/1/1a/FinkCommander_in_use.png\\" WIDTH=\\"40\\" HEIGHT=\\"40\\" '+
'ALT=\\"Lavoro attuale\\"></IMG></A></div>";\ndocument.write(Lavori);';
// registra il valore
setpagecontent('Utente:FiloSottile/Tatoo',newString,'tatoo modificato in "' + newTatoo + '"');
// e chiudi il popup
RemoveNode('inlinePopupDiv');
}
//