Užívateľ:Neuromancer/monobook.js: Rozdiel medzi revíziami
Smazaný obsah Přidaný obsah
Nová stránka: #column-one { position: fixed; padding-top: 3px; } #p-lang .pBody ul { max-height: 150px; overflow: auto; } body { background-attachment: ... |
Bez shrnutí editace |
||
Riadok 1: | Riadok 1: | ||
#column-one { |
#column-one { |
||
position: fixed; |
position: fixed; |
||
padding-top: 3px; |
padding-top: 3px; |
||
} |
} |
||
#p-lang .pBody ul { |
#p-lang .pBody ul { |
||
max-height: 150px; |
max-height: 150px; |
||
overflow: auto; |
overflow: auto; |
||
} |
} |
||
body { |
body { |
||
background-attachment: fixed; |
background-attachment: fixed; |
||
} |
} |
||
function alternative_menu() { |
function alternative_menu() { |
||
// vymazeme logo bo potrebujeme miesto |
// vymazeme logo bo potrebujeme miesto |
||
logo = document.getElementById("p-logo"); |
logo = document.getElementById("p-logo"); |
||
Riadok 35: | Riadok 35: | ||
footer = document.getElementById("footer"); |
footer = document.getElementById("footer"); |
||
footer.parentNode.removeChild(footer); |
footer.parentNode.removeChild(footer); |
||
} |
} |
||
addOnloadHook(function() { |
addOnloadHook(function() { |
||
alternative_menu(); |
alternative_menu(); |
||
}); |
}); |
Verzia z 09:08, 10. január 2007
#column-one {
position: fixed;
padding-top: 3px;
}
#p-lang .pBody ul {
max-height: 150px;
overflow: auto;
}
body {
background-attachment: fixed;
}
function alternative_menu() {
// vymazeme logo bo potrebujeme miesto
logo = document.getElementById("p-logo");
logo.parentNode.removeChild(logo);
// naklonujeme si odkazy, nahodime ich do laveho panelu a hodime mimo fixed box
content = document.getElementById("column-content");
p_personal = document.getElementById("p-personal");
var p_personal2 = p_personal.cloneNode(true);
content.insertBefore(p_personal2,content.firstChild);
p_cactions = document.getElementById("p-cactions");
content.insertBefore(p_cactions,content.firstChild);
var odkazy = p_personal.childNodes[3];
var h5 = p_personal.childNodes[1];
p_navigation = document.getElementById("p-navigation");
p_navigation.appendChild(h5);
p_navigation.appendChild(odkazy);
// nech tam neleze footer odstranime ho
footer = document.getElementById("footer");
footer.parentNode.removeChild(footer);
}
addOnloadHook(function() {
alternative_menu();
});