how to scroll horizontal?
Closed this issue · 8 comments
prajkt-yeole commented
</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.
prajkt-yeole commented
</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);
?>
prajkt-yeole commented
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.
prajkt-yeole commented
prajkt-yeole commented
check now
prajkt-yeole commented
okay tell me, we have to add " direction: 'h' " for horizontal scrolling of text right?
wmh commented
- add direction option
- style your html elements correctly