vanderv,
<ul>
<li >li</li>
<li class="now">now</li>
<li class="now">now</li>
<li >li</li>
</ul>
<ul>
<li>li</li>
<li class="now">now</li>
</ul>
<script type="text/javascript">
for (var u = document.getElementsByTagName("ul"), i = 0; i < u.length; i++) {
l = u[i].getElementsByTagName("li");
for (var k = 0; k < l.length; k++)
if (l[k].className == "now") l[k].onclick = function (a) {
return function () {
alert(a)
}
}(k)
};
</script>