ticketyboo 6.x-1.3 Continuous scrolling, please $ diff -u ticketyboo.module.orig ticketyboo.module --- ticketyboo.module.orig 2009-06-24 12:09:00.000000000 +0200 +++ ticketyboo.module 2009-06-27 08:52:21.000000000 +0200 @@ -220,12 +220,26 @@ $i++; } + // continuous ticker by duplication of nodes + $dupCount = 4; + $count = $i; + if (($dupCount > 0) && ($count > 0)) { + for ($j = 0; $j < $dupCount; $j++) { + $node = node_load(trim($nodes[($j % $count)])); + $ret .= '
'; + $ret .= '
'; + $ret .= $node->teaser; + $ret .= '
'; + $i++; + } + } + // build a wrapper for the contents if ($direction == 'horizontal') { - $w = count($nodes) * ($item_width + $item_spacing); + $w = ($dupCount + count($nodes)) * ($item_width + $item_spacing); $h = $item_height; } else { - $h = count($nodes) * ($item_height + $item_spacing); + $h = ($dupCount + count($nodes)) * ($item_height + $item_spacing); $w = $item_width; } $wrap_style = "width: {$w}px; height: {$h}px;"; $