function theme_views_slideshow_breakout_teaser_js in Views Slideshow 5
Same name and namespace in other branches
- 6 views_slideshow.theme.inc \theme_views_slideshow_breakout_teaser_js()
the mouseover event code for each breakout teaser
1 theme call to theme_views_slideshow_breakout_teaser_js()
- theme_views_slideshow_breakout_teasers in ./
views_slideshow.module - these are teasers that may be pointed at with a mouse to change the element directly
File
- ./
views_slideshow.module, line 435
Code
function theme_views_slideshow_breakout_teaser_js($div, $count) {
// js to set the main div to this teaser's element
$hover = module_invoke('jq', 'add', 'hoverIntent') ? 'hoverIntent' : 'hover';
$js .= '
$("#views_slideshow_div_breakout_teaser_' . $div . '_' . $count . '").' . $hover . '(
function() {
views_slideshow_switch("' . $div . '", ' . $count . ');
views_slideshow_pause("' . $div . '");
},
function() {
views_slideshow_resume("' . $div . '");
});
';
return $js;
}