Difference between revisions of "MediaWiki:Monobook.js"
Айдать на коробушку
Айдать на сыскальник
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 58: | Line 58: | ||
addLoadEvent(display_correct_title); |
addLoadEvent(display_correct_title); |
||
function LinkFA() |
|||
{ |
|||
for(var i=0; a = document.getElementsByTagName("span")[i]; i++) |
|||
{ |
|||
/* ссылка на асю? */ |
|||
if(a.className == "ICQ") |
|||
{ |
|||
a.style.padding = "0 0 0 20px"; |
|||
a.style.backgroundImage = "url('http://status.icq.com/online.gif?icq="+a.id+"&img=5')"; |
|||
a.style.backgroundRepeat = "no-repeat"; |
|||
} |
|||
/* избранная интервика? */ |
|||
if(a.className == "FA") |
|||
{ |
|||
for(var j=0; b = document.getElementsByTagName("li")[j]; j++) |
|||
{ |
|||
if(b.className == "interwiki-" + a.id) |
|||
{ |
|||
b.style.padding = "0 0 0 16px"; |
|||
b.style.backgroundImage = "url('http://upload.wikimedia.org/wikipedia/ru/3/33/Small_skew_star.gif')"; |
|||
b.style.backgroundRepeat = "no-repeat"; |
|||
b.title = "Излюблена стаття"; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
addLoadEvent(LinkFA); |
|||
</nowiki></pre> |
</nowiki></pre> |
||