Self Roatating Slider

by thcipriani

HTML

<a href="#" class="active" rel="1">1</a>
<a href="#" rel="2">2</a>
<a href="#" rel="3">3</a>
<a href="#" rel="4">4</a>

JavaScript

active = $('a.active').next();
alert("active is " + active.attr("rel") + " the width to multiply by is " + active.attr("rel") - 1);