The page has 3 boxes. the 1st one is in yellow, the 2nd one is in pink, and the last one is in cyan.
if you click a link with “#yellow”, it will is go to the yellow box which is on the top of the page.
if you click a link with “#pink”, it will is go to the pink box which is on the middle of the page.
if you click a link with “#cyan”, it will is go to the cyan box which is on the bottom of the page.
if you click a link without any “#”, it will is go to the yellow box which is on the top of the page.
I like to make it like the following.
if you click a link without any “#”, it will is go to the pink box which is on the middle of the page.
the yellow box is hidden over the top of the browser.
if you drag down of the vertical scroll bar, you can see the yellow box but you can’t see the yellow box when it is loading.
Can I make it displays from the 100px height when the page is loading with your help?
Can I make it with CSS or should I go to the Javascript forums?
As you use a bit of Javascript, It works fine.
when it is loading, it begins from the pink div.
but I am also afraid saying that it does not display from the 100px height(vertically).
I quote the below from my original post.
[quote=“joon1, post:1, topic:210879”]
if you drag down of the vertical scroll bar, you can see the yellow box but you can’t see the yellow box when it is loading.
[/quote]I can’t see the yellow box by dragging down the vertical scroll bar.
Going to the yellow box with “#yellow”, Going to the pink box with “#pink”, or Going to the cyan box with “#cyan” is not important.
What I want is that the page displays from the 100px height vertical level instead of the top which is 0px height vertical level.
Most web pages begin from the top (0 height px), but I want my page begins from the 100 height px.
How can I make my page begins from the 100 height px vertically?
I have moved this topic to the JavaScript forum where hopefully someone will be able to help.
I think you have four states:
Firstly: a default link which is also the initial state that:
- does not display the top yellow DIV
- jumps straight to the pink DIV but
- allows the scroll bar to scroll back up to the page top and reveal the yellow DIV
Secondly: the three yellow, pink and aqua links jump to their relevant DIV