If you're using an all-IE environment, it's pretty simple, you just use
something like this:

document.all.navdiv.style.top = document.body.scrollTop + "px";

that'll put the <DIV> named 'navdiv' at the top of the viewable screen.
Just make that fire when the user scrolls, and you'll be set.

If you're in a hybrid environment, then I'm not sure what to do.  Probably
the same type of thing, just using LAYER tags instead, but it's been a long
time since I've played with that stuff.

HTH,
barneyb

> -----Original Message-----
> From: Jim McAtee [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 3:50 PM
> To: CF-Talk
> Subject: OT: DHTML/Javascript question
>
>
> I've got an intranet site that uses a simple frame construct for
> navigation.  It
> has a 60 pixel tall navigation frame across the top of the screen
> that uses
> icons and text links, while the working application pages are
> displayed below.
> I'd like to convert this to using DHTML drop-down menus within
> this navigation
> frame, but obviously (or maybe not so obviously) the drop downs
> can't drop over
> the lower frame.  So, instead of using frames, the next move is
> to just place a
> strip of drop-down menus across the top of every page.  This is
> easily done,
> since all pages use standard header/footer files via cfinclude.
>
> The one thing missing is that the nav frame approach was very
> handy, in that it
> was always visible.  Is it possible to position a table (with the
> navigation
> bar) across the top of a page, and keep it there even when the
> rest of the page
> is scrolled?
>
> Thanks,
> Jim
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to