diff -r orig/taxonomy_ticker_0811/taxonomy_ticker.css taxonomy_ticker/taxonomy_ticker.css 2c2 < position:absolute; --- > position: absolute; 5,6c5,6 < color: #000000; < background-color: #FFFFCC; --- > color: #000; > background-color: #ffc; 9,10c9 < /* border: 1px solid #CC0000; */ < width: 250px; --- > width: 200px; 13a13 > 17d16 < /* border: 1px dashed #FF9900; */ 18a18,34 > > #scrollPane { > position: relative; > top: 0px; > left: 0px; > } > > #firstscrollerContentItem { > height: 75px; /* the same as the height of #scrollerClipper */ > margin: 5px 5px 0px; > padding: 2px; > } > > #lastscrollerContentItem { > height: 0; > } > diff -r orig/taxonomy_ticker_0811/taxonomy_ticker.js taxonomy_ticker/taxonomy_ticker.js 13,18c13,14 < < var scrollIntervall = 200; // Milliseconds < document.scrollerIntervalID = window.setInterval("doScroll()", 80); < document.stopper = 0; < < var style = document.getElementById("scrollPane").style; --- > var scrollIntervall = (document.getElementById("scrollerClipper").style.zIndex) * 10 ; > document.scrollerIntervalID = window.setInterval("doScroll()", scrollIntervall); 22d17 < 24,25d18 < document.stopper += 1; < 29c22 < if(Math.abs(crntPos) >= (scrollPane.scrollHeight - 75)){ --- > if(Math.abs(crntPos) >= scrollPane.scrollHeight){ 39c32,33 < document.scrollerIntervalID = window.setInterval("doScroll()", 80); --- > var scrollIntervall = (document.getElementById("scrollerClipper").style.zIndex) * 10 ; > document.scrollerIntervalID = window.setInterval("doScroll()", scrollIntervall); diff -r orig/taxonomy_ticker_0811/taxonomy_ticker.module taxonomy_ticker/taxonomy_ticker.module 19,22c19,29 < $block = " <
<
< "; --- > if (variable_get('taxonomy_ticker_direction', 0) == 0) { // scrolling vertically > drupal_add_js('modules/taxonomy_ticker/taxonomy_ticker.js'); > theme_add_style('modules/taxonomy_ticker/taxonomy_ticker.css'); > } else { > drupal_add_js('modules/taxonomy_ticker/taxonomy_ticker_horizontally.js'); > theme_add_style('modules/taxonomy_ticker/taxonomy_ticker_horizontally.css'); > } > > $tickerspeed = variable_get('taxonomy_ticker_speed', 8); > // removing the style tag from scrollPane breaks the scrolling functionality > $block = '
'; 33,38c40 < $results = db_query_range($query, 0, variable_get("taxonomy_ticker_count", 5)); < < /* to get a more flowing scrolling, we put some white space at the top. < * YOU CAN ADD MORE! ... especially if you use a big (height) block, a small font, ...! */ < $block .= "

 

"; < $block .= "

 

"; --- > $results = db_query_range($query, 0, variable_get('taxonomy_ticker_count', 5)); 39a42 > $block .= '
'; 53c56 < $block .= "

" . l($result->title, "node/" . $result->nid) . "

"; --- > $block .= '

' . l($result->title, 'node/' . $result->nid) . '

'; 59,61c62,63 < $block .= "

 

"; < $block .= "

 

"; < $block .= "
"; --- > $block .= '
'; > $block .= '
'; 101,102c103,109 < return $form; < } --- > $form["taxonomy_ticker_direction"] = array( > '#type' => 'select', > '#title' => "Direction of scroll", > '#default_value' => variable_get("taxonomy_ticker_direction", 0), > '#options' => array(0 => t('Vertically'), 1 => t('Horizontally')), > '#description' => t("The direction in which the items scroll in the ticker."), > ); 104,106c111,119 < function taxonomy_ticker_init() { < theme_add_style("modules/taxonomy_ticker/taxonomy_ticker.css"); < drupal_add_js('modules/taxonomy_ticker/taxonomy_ticker.js'); --- > $form["taxonomy_ticker_speed"] = array( > '#type' => 'select', > '#title' => "Scroll Speed", > '#default_value' => variable_get("taxonomy_ticker_speed", 8), > '#options' => array(1 => t('Super Fast'), 4 => t('Fast'), 8 => t('Standard'), 12 => t('Slow'), 16 => t('Super Slow')), > '#description' => t("The speed in which the items scroll in the ticker."), > ); > > return $form; Only in taxonomy_ticker: taxonomy_ticker_horizontally.css Only in taxonomy_ticker: taxonomy_ticker_horizontally.js