Sorry this might be OT.
I have a header on a large table that scrolls down.
The top of the header starts at about 106px.
I want the header to move down,  once the top of the window gets to it and
then stay about 10px below the top of the window until the user scrolls back
up, then for it to stop at its origanal postion(106px).

I found some javascript that I got to work. What I did was have a <DIV>
hidden that matched the header.  When the top of the window got to the
header the <div> was unhidden and followed the user down. When the user got
back up to the header, the <div> hide again.
The <div> is always 10px from the top of the window, but is hidden until the
top gets to about 105px, then is shown, so to the user it just looks like
the header starts to move.

BUT this does not work if I use, either of these:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";> 

Dreamweaver 8, seems to default to this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

But does work with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

So must be a feature that is being left behind.

I have tried using Position: Fixed in my css, but IE has issues with this.
Found more javascript that will in general get Postion: Fixed to work with
it.

But if I do this and start my <div> over the header, it will then stay 106px
from the top of the window.
How can I get the <div> to either not move until the top of the window gets
to the header and then stay at 10px from window top.
Or hide the <div> like I was doing and have it only show up when the top of
the window is at or below 105px?

Thanks and sorry for the long winded msg.
Rodney


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240928
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to