Hi guys!
First of all thank you for this really great plugin. Works good. But I found some disturbing bugs, such as high cpu usage and big white space between ending and staring.
So I decided to help you to improve this plugin and I merged liScroll 1.0 and webTicker 1.3. Here is the right and working script:
jQuery.fn.liScroll = function(settings) {
settings = jQuery.extend({
travelocity: 0.05,
direction: 1,
moving: true
}, settings);
return this.each(function(){
var $strip = jQuery(this);
$strip.addClass("newsticker")
var stripWidth = 0;
var $mask = $strip.wrap("<div class='mask'></div>");
var $tickercontainer = $strip.parent().wrap("<div class='tickercontainer'></div>");
$strip.find("li").each(function(i){
stripWidth += jQuery(this, i).outerWidth(true);
});
$strip.width(stripWidth+200);//20 used for ie9 fix
function scrollnews(spazio, tempo){
if (settings.direction == 1)
$strip.animate({left: '-='+ spazio}, tempo, "linear", function(){
$strip.children().last().after($strip.children().first());
var first = $strip.children().first();
var width = first.outerWidth(true);
var defTiming = width/settings.travelocity;
//$strip.css("left", left);
$strip.css("left", '0');
scrollnews(width, defTiming);
});
else
$strip.animate({right: '-='+ spazio}, tempo, "linear", function(){
$strip.children().last().after($strip.children().first());
var first = $strip.children().first();
var width = first.outerWidth(true);
var defTiming = width/settings.travelocity;
//$strip.css("left", left);
$strip.css("right", '0');
scrollnews(width, defTiming);
});
}
var first = $strip.children().first();
var travel = first.outerWidth(true);
var timing = travel/settings.travelocity;
scrollnews(travel, timing);
$strip.hover(function(){
jQuery(this).stop();
},
function(){
var offset = jQuery(this).offset();
var first = $strip.children().first();
var width = first.outerWidth(true);
var residualSpace;
if (settings.direction == 1) residualSpace = parseInt(jQuery(this).css('left').replace('px',''))+ width;
else residualSpace = parseInt(jQuery(this).css('right').replace('px',''))+ width;
var residualTime = residualSpace/settings.travelocity;
scrollnews(residualSpace, residualTime);
});
});
};
Use it with joy! ??
https://www.ads-software.com/extend/plugins/wp-stock-ticker/
]]>Is there a way to change the background color from white to match the current site background?
https://www.ads-software.com/extend/plugins/wp-stock-ticker/
]]>Tested in IE 7, 8 and 9. Bleeds out of the widget. Looks fine in Firefox.
https://www.ads-software.com/extend/plugins/wp-stock-ticker/
]]>Hey guys, great plugin.
Check out this screenshot – the numbers are totally bogus. The setting on the backend use the correct syntak (“^IXIC”, for example).
Any idea how to get the right numbers to display?
https://www.ads-software.com/extend/plugins/wp-stock-ticker/
]]>I would like to move the link to the WP Stock Ticker settings page out of the “Settings” menu and give it a main admin menu item of its own as to allow the clients to change stock settings without letting them into the WordPress settings. Thanks!
https://www.ads-software.com/extend/plugins/wp-stock-ticker/
]]>I love this plugin, but the codes provided for implementing it are inadequate.
For anyone wanting to simply jam this into a template file, such as header.php, default.php, etc. and you’re having trouble with the function script provided, you can insert the actual shortcode directly into your php file with this snippet:
<?php echo do_shortcode(“[s_ticker_display]”); ?>
works like a charm and you can see it in action on my political news site
great plugin! of all the tickers, I love this one the best!
https://www.ads-software.com/extend/plugins/wp-stock-ticker/
]]>