Gmail Fixed Navigation

By maloninc Last update Sep 13, 2007 — Installed 1,610 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 27 posts, 9 voices



creyle User

Can't help to enhance it.

changes:
1. move up the logo, I use better gmail, so the logo now won't cover the expand/collapse gmail links.
2. widen the navigation a to 20ex, orginally 16.6ex, better for long label name or chat buddy name.
3. because of 2, the arrow has to be shifted to the right to 200px.

Cheers!

function fixLogo() {
var ds = document.getElementById('ds_inbox');
if (ds != null){
ds.style.position = "fixed";
ds.style.paddingTop = 0;
}else{
setTimeout(fixLogo, 500);
}
}

function fixMenu() {
var cont = document.getElementById('co');
var menu = document.getElementById('nav');
if (cont != null && menu != null){
cont.style.marginLeft = "20ex";
menu.style.position = "fixed";
menu.style.overflow = "scroll";
menu.style.height = document.body.clientHeight - 59;
menu.style.width = "20ex";
}else{
setTimeout(fixMenu, 500);
}
}

function fixArrow() {
var arrow = document.getElementById('ar');
if (arrow != null) {
arrow.style.left = "200px";
arrow.style.top = "140px";
} else {
setTimeout(fixArrow, 500);
}
}

fixLogo();
fixMenu();
fixArrow();

 
creyle User

Hello, gotta believe it's just a typo, in the method fixLogo, the first argument, the method name for the setTimeout should just be fixLogo itself, not fixTitle

Regards

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel