trying to fix my bug : <p>im making a slide text from right to left , but when goes on left side stop moving and start again ...i want it to never stop moving from right to left .. here is     my code ..</p>

<pre><code>function change_left() {
$('#slide12').removeClass('slide-right').addClass('slide-left');
}

function change_right() {
$('#slide12').removeClass('slide-left').addClass('slide-right');

}

function to_left() {
setInterval(change_left, 5000);

};

function to_right() {
setInterval(change_right, 5000);
};
to_left();
to_right()
</code></pre>
