/    Sign up×
Community /Pin to ProfileBookmark

(complicated) floating menu problem

Hi all, thanks for reading this
I have a rather complicated (at least to me ? ) floating menu problem.
I have a little page like this [URL=”http://www.ufc.org.hk/about.html”]http://www.ufc.org.hk/about.html[/URL]

probably you don’t understand the chinese so neglect it ?
but as you can see, I have a rather long page
so that I created a right navigation box (not finished, supposedly for going to those page anchors)

I wanted the right box to move down as soon as I scroll down the page to a extent that the box can not be seen 100%, (being covered by the browser)

I did a search and I found something like [URL=”http://www.jtricks.com/javascript/navigation/floating.html”]this[/URL]
which has the effect of moving while scrolling but not really what i wanted..
as,
1. it will start as soon as I scroll ( not until a extent has been reached )
2. its position seems to be fixed but my page is actually centered in a big div…
I want my box to center with my other content like it will now but also it could move while scrolling.

could anyone tell me a workaround for my problem?
I am completely a newbie of this kinda stuff
again thanks for reading this

(sorry for my english)

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @llllawrence spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...