All items being separated and scrolled in two massive lists
leetamus - October 22, 2009 - 17:52
| Project: | Newsticker |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I have a list of around 50 items. For some reason the scroller has separated them all in to two 25(ish) item lists and is jsut scrolling back and forth between the two rather than scrolling through each list item one at a time.. This worked fine in the drupal 5 version. I should mention that every item has a weight of -10. Any suggestions? I am using a homegrown theme.

#1
I believe making some adjustments to the default CSS should do the trick, just make the changes in your own themes CSS. The new version of the module uses a different approach to scrolling, basically laying out all the items in a horizontal line and using some overflow trickery and CSS to show one at a time. I thought it was better performance and SEO. Also take a look at how the widths are defaulted in newsticker_get_rotator().
#2
Hey thanks for the quick feedback :)
I see what you're saying, but mine isn't horizontal. It's two vertical lists which are sliding back and forth as if each is a single list item or something. The content in the two vertical lists isn't being manipulated at all so if i were to set a height on the content via css so it only showed one line it would then just be bouncing back and forth between the first item in each list.
I included a screenshot so you can see what I mean. This image shows what it looks like in the middle of the transition between the two lists.
#3
I don't know anything about php coding, but I change line 232 from
$('#newsticker ul').width(width*3);to$('#newsticker ul').width(width*150);and now it works although when it gets to the end of the list is talkes a LOOOONG time to slide through everything back to the beginning... not sure what that did, but seems to be on the right track!EDIT: regarding the LONNNG slide back to the first list item, is there some way I can just have it kick right back to the first item in the list once done rather than sliding? I spent a bit of time checking our the serialscroll docs and could see anything outside of 'cycle' which doesn't do waht I thought it would (go from the last item to the first item as if it was just advancing again)