﻿function startTicker(a, b, c) { $(a).attr("numberToShow", b); $(a + " li").slice(b).hide(); setInterval('rotateTicker("' + a + '")', c) } function rotateTicker(a) { var b = parseInt($(a).attr("numberToShow")), c = $(a + " li:first"), d = c.html(); c.fadeOut(999, function() { $(this).remove(); $(a).append('<li style="display:none">' + d + "</li>"); $(a + " li").slice(0, b).show(); $(a + " li").slice(b).hide() }) }
