Jump to content

stop news ticker on mouse over


clausowitz

Recommended Posts

Hi All,

 

I use  some code that I found on-line to display a scrolling text.

I am a JavaScript dummy but my question is can someone show me how to stop the scrolling on mouse over.

 

$(function()

{

var ticker = function()

{

setTimeout(function(){

$('#ticker li:first').animate( {marginTop: '-120px'}, 800, function()

{

$(this).detach().appendTo('ul#ticker').removeAttr('style');

});

ticker();

}, 4000);

};

ticker();

});

 

Marco

Link to comment
https://forums.phpfreaks.com/topic/243601-stop-news-ticker-on-mouse-over/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.