-3
<script type="text/javascript">
    $(function(){
      $('#vertical-ticker').totemticker({
        row_height  :   '55px',
        next        :   '#ticker-next',
        previous    :   '#ticker-previous',
        stop        :   '#stop',
        start       :   '#start',
        direction   :   'up',
        });
    });
  </script>

We have a jQuery Totem Ticker in our rails app; we want it to scroll down instead of up. the plug-in's homepage says to add the following line:

direction   :   'up'

But this doesn't work. How should it be done?

David Thomas
  • 249,100
  • 51
  • 377
  • 410
scud bomb
  • 415
  • 3
  • 19
  • I didn't think it would, necessarily (that's why it's added to the comment, not posted as an answer), but trailing commas often cause problems in scripts. Could you post a live [JS Fiddle](http://jsfiddle.net/) demo, or similar, so we can see what you're working with? – David Thomas Feb 18 '12 at 23:18

1 Answers1

4

The download on the project page seems to be outdated: there is no mention of direction in the code. Try the github version instead, which seems to be checking for the direction setting.

Pekka
  • 442,112
  • 142
  • 972
  • 1,088
  • To be fair in his original text he did refer to the 'GIT' page, (without a link) so I may have screwed up the edit when I amended that with the first result for 'totem ticker jquery'. – David Thomas Feb 18 '12 at 23:20
  • @David yeah, I saw that. I think he looked in the github page's documentation, but used the download link on the web site (which is a logical thing to do; the author should update his link.) – Pekka Feb 18 '12 at 23:21
  • @Pekka the github version makes no mention of `direction`, we're javascript/jQuery rookies and evidently its showing here because were stumped. – scud bomb Feb 18 '12 at 23:33