more enhancements to the slide panel

This commit is contained in:
JT Smith 2005-04-19 23:39:50 +00:00
parent 93c6567fb7
commit 3cdb52faca
4 changed files with 24 additions and 5 deletions

View file

@ -222,6 +222,26 @@ function b_draw() {
this.showPanel(document.cookie);
else
this.showPanel(0);
//float the panel as someone scrolls
startY = 0;
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(y){this.style.top=y;};
el.y = startY;
return el;
}
window.floatBarWithScroll=function()
{
var pY = document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
ftlObj.sP(ftlObj.y);
setTimeout("floatBarWithScroll()", 10);
}
ftlObj = ml("slidePanelBar");
floatBarWithScroll();
}
function b_showPanel(nr) {