Utente:Sanjilops/monobook.js: differenze tra le versioni
Vai alla navigazione
Vai alla ricerca
Contenuto aggiunto Contenuto cancellato
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 130: | Riga 130: | ||
if (ref.offsetLeft < document.getElementById('bodyContent').clientWidth/2) span.style.left = "0px"; |
if (ref.offsetLeft < document.getElementById('bodyContent').clientWidth/2) span.style.left = "0px"; |
||
else span.style.right = "0px"; |
else span.style.right = "0px"; |
||
/* |
|||
temp = getText(span); |
temp = getText(span); |
||
temp = temp.length * 12; |
temp = temp.length * 12; |
||
span.style.width = (temp < 400)? temp + 'px' : "400px"; |
span.style.width = (temp < 400)? temp + 'px' : "400px"; |
||
*/ |
|||
ref.appendChild(span); |
ref.appendChild(span); |
||
// ref.setAttribute('onMouseOver', "javascript:this.childNodes[1].scrollIntoView(true);"); |
// ref.setAttribute('onMouseOver', "javascript:this.childNodes[1].scrollIntoView(true);"); |