what i decided to do is unroll the loop, for example:
if you have this loop:
for(var i = 0; i = 9; ++i) alert(i);
then you could unroll it to this:
alert(0);
alert(1);
alert(2);
...
alert(9);
since i only had a total of 9 iterations of the loop, then it would only add
a little bit to filesize
You might want to doublecheck that when you click the elements you
took out of the loop, you really get what you say. Given your example,
if you click #page2 it should alert 'page3' also.
You don't really need the loop to attach the click and get at the
number if it's part of the id:
2 matches
Mail list logo