moondance
08-15-2003, 04:48 AM
I originally posted this in the html section, but discovered my problem is more javavscript related.
I have a news headline scroller on my main page, which, when clicked, will take the user to the relevant article on the news page. The news articles have anchor tags in them (#test1 to #test5).
I have included the flies to download, so you can see the problem as it works.
The problem is, if you click on a news article in the headline scroller, it takes you to the news page, and even to the relevant article on the news page, but you can't scroll up to view content above it using the up/down images.
So for example, say you click on the link in the news scroller to go to test4 - you will not be able to scroll up to see test1, test2 or test3 articles. It is like it is cutting off the top of the content, and only starting the news content from where the anchor tag is.
I changed the overflow property of the divcontainer from:
#divContainer {LEFT: 190px; VISIBILITY: hidden; OVERFLOW: hidden; WIDTH:545px; CLIP: rect(0px 580px 385px 0px); POSITION: absolute; TOP: 210px; HEIGHT: 370px}
to:
#divContainer {LEFT: 190px; VISIBILITY: hidden; OVERFLOW: auto; WIDTH:545px; CLIP: rect(0px 580px 385px 0px); POSITION: absolute; TOP: 210px; HEIGHT: 370px}
With this property set, you CAN scroll back up using the standard div scrollbar. Therefore the problem must be in the Javascript i'm using for the scrolling div (written by David G. Miles etc).
If anyone has any idea of how to solve this or has come across something similar i will greatly appreciate any advice.
:confused:
I have a news headline scroller on my main page, which, when clicked, will take the user to the relevant article on the news page. The news articles have anchor tags in them (#test1 to #test5).
I have included the flies to download, so you can see the problem as it works.
The problem is, if you click on a news article in the headline scroller, it takes you to the news page, and even to the relevant article on the news page, but you can't scroll up to view content above it using the up/down images.
So for example, say you click on the link in the news scroller to go to test4 - you will not be able to scroll up to see test1, test2 or test3 articles. It is like it is cutting off the top of the content, and only starting the news content from where the anchor tag is.
I changed the overflow property of the divcontainer from:
#divContainer {LEFT: 190px; VISIBILITY: hidden; OVERFLOW: hidden; WIDTH:545px; CLIP: rect(0px 580px 385px 0px); POSITION: absolute; TOP: 210px; HEIGHT: 370px}
to:
#divContainer {LEFT: 190px; VISIBILITY: hidden; OVERFLOW: auto; WIDTH:545px; CLIP: rect(0px 580px 385px 0px); POSITION: absolute; TOP: 210px; HEIGHT: 370px}
With this property set, you CAN scroll back up using the standard div scrollbar. Therefore the problem must be in the Javascript i'm using for the scrolling div (written by David G. Miles etc).
If anyone has any idea of how to solve this or has come across something similar i will greatly appreciate any advice.
:confused: