Active
Project:
Views Ticker
Version:
5.x-0.1-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2008 at 01:24 UTC
Updated:
26 Mar 2009 at 12:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
jaydunford commentedWe use this module to display news items across a horizontal scrolling block of about 975 pixels width.
We would also like the news items to seamlessly loop in this region, rather than there being a big gap when the last item disappears off the page while we wait for the first item to appear from the right hand edge.
Any help appreciated.
Comment #2
hutch commentedHow it is displayed is handled by the views module and can be manipulated by overriding the views-ticker css in your theme.
Look at views.ticker.scroller.css for a start and grab the generated source. I use firefox with web developer plugin but I imagine that any DOM inspector would do.
As you are not the first to ask please tell this list what happens ;-)
Comment #3
jaydunford commentedHey Hutch,
Thanks for the quick reply. I have already been playing around with the source using Firefox/Firebug but with no success. I have now also tried to manipulate the styles in views.ticker.scroller.css as you suggested but have not been able to get rid of the large whitespace I was talking about.
If you get a minute please check out the following demo site where you can see what I am talking about:
http://abdev.lionheart.co.uk
If you wait until the last item (entitled 'Gidleigh Park wins South West Tourism Excellence Gold Award') has appeared you should see what I mean.
Would also like the option for the ticker to pause on mouse hover but I will check the issue queue for that and create a new request there if one does not exist already.
Thanks again
Comment #4
hutch commentedI can see that it is behaving the same as mine ;-(
I'll have a go at tweaking css (not my favourite activity) but I suspect that the problem might lie in the style insertions that views-ticker.scroller.js is inserting. Unfortunately I do not have the source, only packed and my attempt to get the original author to let me have it failed (some time ago)
for instance:
I am not at all clear where the 489px comes from, not the php code for sure so it has to be the js. The trouble is that inline styling cannot be over-ridden as far as I know. 489 is roughly half of 975, but why???
As far as mouseover settings go I have attached a patch that will enhance views ticker with a settings page, you should see it under admin/settings/views_ticker
Hope this helps.