Click to See Complete Forum and Search --> : Need help writing script to scroll through a list


mcskiver
05-03-2006, 05:22 AM
Hi,

I have an unordered list placed vertically in a containing element (a div). This list will probably be over 100 elements long, so I want to fix the height of the div, then have a JS-based scrollbar that allows me to scroll through the list. Any ideas?

The problems i've already encountered are that, using standard scrollbars, there are issues with Firefox on the Mac, which are due to us creating new DOM elements which sometimes need to overlay the list (the scrollbars show through).

Also, i've tried using a script from www.dyn-web.com, but we actually have two lists in this case, and we're dragging and dropping elements between the lists, but this fails in IE. So with the Dyn-Web script, the whole things works fine in Firefox on both major platforms.

Any ideas on a simpler way to implement this scrollbar effect that might work across the board?

Kor
05-03-2006, 05:39 AM
have you considered an iframe?

mcskiver
05-03-2006, 06:05 AM
Because of the problem caused in Firefox on the Mac, i'd get the same issue using an iFrame. Any platform-rendered scrollbar elements on the Mac show through overlaying DOM elements unfortunately....