more enhancements to the slide panel
This commit is contained in:
parent
93c6567fb7
commit
3cdb52faca
4 changed files with 24 additions and 5 deletions
|
|
@ -61,17 +61,16 @@
|
|||
.panelLinkOut {
|
||||
position:absolute;
|
||||
overflow: hidden;
|
||||
height: 20px;
|
||||
height: 25px;
|
||||
cursor: hand;
|
||||
left:0;
|
||||
/*border: 1px solid #eeeeee; */
|
||||
font-size: 11px;
|
||||
font-family: helvetica, arial, sans;
|
||||
padding: 5px;
|
||||
}
|
||||
.panelLinkIn {
|
||||
position:absolute;
|
||||
height: 20px;
|
||||
height: 25px;
|
||||
overflow: hidden;
|
||||
cursor: hand;
|
||||
left:0;
|
||||
|
|
@ -79,6 +78,5 @@
|
|||
font-size: 11px;
|
||||
font-family: helvetica, arial, sans;
|
||||
background-color: #F5F5F5;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue