Usuario discusión:Yuriy kosygin

Contenido de la página no disponible en otros idiomas.
De Wikiviajes, la guía libre de viajes

REː Ticker and news section[editar]

Good evening. To recreate the section you mention me in your project, you will need the source code of:

//Ticker
var width = $('.ticker-text').width(),
    containerwidth = $('.ticker-container').width(),
    left = containerwidth;
$(document).ready(function(e){
	function tick() {
        if(--left < -width){
            left = containerwidth;
        }
        $(".ticker-text").css("margin-left", left + "px");
        setTimeout(tick, 8); //Number indicates the speed (smaller number = faster)
      }
      tick();
});
//END Ticker

Write me for any questions that may arise. Greetings. --Jorge Abellán DISC 23:10 11 oct 2019 (UTC)[responder]