wmh/jquery-scrollbox

how to scroll horizontal?

Closed this issue · 8 comments

</script>' ."\n"; $scrollbox .= '<script>' ."\n"; $scrollbox .= 'jQuery(document).ready(function(){' ."\n"; $scrollbox .= 'jQuery(".newsflash.horizontal-scroll").scrollbox({ linear: true, step: 1, delay: 0, direction: "h", speed: 50 });' . "\n"; $scrollbox .= '});' ."\n"; $scrollbox .= '</script>' ."\n"; $doc = JFactory::getDocument(); $doc->addCustomTag($scrollbox); ?>
wmh commented

Please see examples or show me your code on jsbin.

</script>' ."\n"; $scrollbox .= '<script>' ."\n"; $scrollbox .= 'jQuery(document).ready(function(){' ."\n"; $scrollbox .= 'jQuery(".newsflash.horizontal-scroll").scrollbox({ linear: true, step: 1, delay: 0, direction: "h", speed: 50 });' . "\n"; $scrollbox .= '});' ."\n"; $scrollbox .= '</script>' ."\n"; $doc = JFactory::getDocument(); $doc->addCustomTag($scrollbox); ?>

This is the code i've written for joomla template overide

wmh commented

Sorry, but I didn't see anything here, not even the js library file.

check now

okay tell me, we have to add " direction: 'h' " for horizontal scrolling of text right?

wmh commented
  1. add direction option
  2. style your html elements correctly