horizontal list of text links, mouse right/left to scroll

horizontal list of text links, mouse right/left to scroll

I have a situation where I have a long list of text links that stretches wider than a containing box. The user needs to be able to move their mouse to the right side of the box and the list scrolls to display any links that are hidden. Likewise, they can move their mouse to the left side of the box and the list scrolls to display any hidden links to the left.

I have seen a couple of scripts that people have written, but they were using images with a known width.

In my case I have text links, with no consistency of width for each link.

Before I start wrangling with this (I'm not a really experienced javascript coder), I thought I would look for some advice here on the forum. Is this a situation where I need to know the width of each list item (text link) in order to implement this? Or can this be implemented when the width of each list item is variable?

Any advice would be greatly appreciated. Or, if you know of anyone who has already implemented something like this I would love to take a look at it.
    • Topic Participants

    • dsf