var firstspan = $('span.activated:first'),
lastspan = $('span.activated:last');
By the way, if you're using jQuery, what's with all the inline click events?
You could add some code like so:
$('span.place').click(function() {
activate(); // you can add `this` as a parameter
// to activate if you need scope.
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…