Hello! There is a slider, on the left is the name of the article, and on the right is a picture, and according to the relevant news the necessary picture is displayed. Here is the code responsible for the actions described:
$(document).ready(function(){ $(".leftBlock").hover( function(){ $(".leftBlock").css('background-image','none'); $(this).css('background','url("/img/arrow4.png")'); $(this).css('background-repeat','repeat'); $("#image").attr("src",$(this).attr("img_href")) }, function(){ $("#image").attr("src") } ); });
Question: How to make "autoscrolling" or "auto-stepping"?