1var tickerItems = new Array(); 2var count = new Array(); 3var tickerText = new Array(); 4var c = new Array(); 5 6function scroll_ticker_create(id){ 7 var scroll_ticker = function() 8 { 9 setTimeout(function(){ 10 if (!jQuery(id+" ul.ticker li:first").is(":hover")){ 11 jQuery(id+" ul.ticker li:first").animate( {marginTop: '-50px'}, 800, function() 12 { 13 jQuery(this).detach().appendTo(id+" ul.ticker").removeAttr("style"); 14 }); 15 }; 16 scroll_ticker(); 17 }, 5000); 18 }; 19 scroll_ticker(); 20} 21jQuery.fn.liScroll = function(settings) { 22 settings = jQuery.extend({ 23 travelocity: 0.07 24 }, settings); 25 return this.each(function(){ 26 var $strip = jQuery(this); 27 $strip.addClass("newsticker"); 28 var stripWidth = 1; 29 30 var containerWidth = $strip.parent().parent().width(); 31 32 $strip.find("li").each(function(i){ 33 stripWidth += jQuery(this, i).outerWidth(true) + 100; 34 }); 35 36 $strip.width(stripWidth); 37 var totalTravel = stripWidth+containerWidth; 38 var defTiming = totalTravel/settings.travelocity; 39 function scrollnews(spazio, tempo){ 40 $strip.animate({left: '-='+ spazio}, tempo, "linear", function(){$strip.css("left", containerWidth); scrollnews(totalTravel, defTiming);}); 41 } 42 scrollnews(totalTravel, defTiming); 43 $strip.hover(function(){ 44 jQuery(this).stop(); 45 }, 46 function(){ 47 var offset = jQuery(this).offset(); 48 var residualSpace = offset.left + stripWidth; 49 var residualTime = residualSpace/settings.travelocity; 50 scrollnews(residualSpace, residualTime); 51 }); 52 }); 53};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.