Użytkownik:Holek/myskin.js: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
mNie podano opisu zmian |
(Brak różnic)
|
Aktualna wersja na dzień 18:57, 1 cze 2005
function topTabsToRightPlace() {
/* Remove the top "tabs" from the .portlet side column (why were they ever put there?) and
put them at the top of the content area, where they belong! (This allows me to use simple
relative positioning to get a proper layout. I don't have to mess around with absolute
positioning. This is necessary for my language links at the top to work properly, but it
is cleaner anyway. */
var contents = document.getElementById('column-content');
var tabs = document.getElementById('p-cactions');
tabs.parentNode.removeChild (tabs);
contents.insertBefore(tabs, contents.firstChild);
}
function reformatMyPage() {
bottomTabs();
topTabsToRightPlace(); /* First the top "tabs"... */
languageAtTop(); /* ... and then the language links */
/* The order is important here: first move the tabs, then the language links, otherwise they
will end up in the wrong order (tabs above language links). */
}
if (window.addEventListener) window.addEventListener("load",reformatMyPage,false);
else if (window.attachEvent) window.attachEvent("onload",reformatMyPage);