lained
01-09-2006, 09:13 PM
Hi, I'm new to this forum, but I hope you guys will be kind enough to help me solve this problem I'm having.
What I'm trying to accomplish:
I am using Project Seven (PVII)'s Layer AniMagic to create a scrollable content layer one can scroll up or down using an up/down arrows. Outside of this scrollable content are links that are anchored to contents within the scrollable layer. What I would like for it to happen is when a user click on the links the content should jump down to appropriate positions, the user should then have the option of being able to scroll back up using the faux scrollbar (up/down arrows).
The problem:
When the user clicks on the anchored links, the content drops down to appropriate position but does not offer the option of scrolling back to top using the up arrow. I believe this is because Layer AniMagic works by counting down pixels when down arrow is depressed then count back up to 0 when the up arrow is pressed (I think majority of the scroll scripts I looked at have similar algorithm). When the content jumped down to the anchored position, the script did not get its chance to count down and thus believe that the anchored position is still at 0.
What I've tried/considered:
- iframe. This will not do because the scrollbar uses the browser scrollbar (it has to be up/down arrows).
- I've fooled the Layer AniMagic code to thinking that it starts at -5000 (instead of 0), this worked by fooling it to allow scroll back up but it does not automatically stop the scrolling at 0 as it should, instead allows the user to scroll up to -5000, making it look sloppy.
- I've looked into different scripts, but none of them supported anchored links positioned out of the layer.
Has anyone run into problem like this? Any suggestions?
What I'm trying to accomplish:
I am using Project Seven (PVII)'s Layer AniMagic to create a scrollable content layer one can scroll up or down using an up/down arrows. Outside of this scrollable content are links that are anchored to contents within the scrollable layer. What I would like for it to happen is when a user click on the links the content should jump down to appropriate positions, the user should then have the option of being able to scroll back up using the faux scrollbar (up/down arrows).
The problem:
When the user clicks on the anchored links, the content drops down to appropriate position but does not offer the option of scrolling back to top using the up arrow. I believe this is because Layer AniMagic works by counting down pixels when down arrow is depressed then count back up to 0 when the up arrow is pressed (I think majority of the scroll scripts I looked at have similar algorithm). When the content jumped down to the anchored position, the script did not get its chance to count down and thus believe that the anchored position is still at 0.
What I've tried/considered:
- iframe. This will not do because the scrollbar uses the browser scrollbar (it has to be up/down arrows).
- I've fooled the Layer AniMagic code to thinking that it starts at -5000 (instead of 0), this worked by fooling it to allow scroll back up but it does not automatically stop the scrolling at 0 as it should, instead allows the user to scroll up to -5000, making it look sloppy.
- I've looked into different scripts, but none of them supported anchored links positioned out of the layer.
Has anyone run into problem like this? Any suggestions?