<!DOCTYPE html>
<html>
<head>
</head>
<body>
<span id="pro" onclick="message('1000', this);">Кнопка</span>
<span id="pro1" onclick="message('1000', this);">Кнопка</span>
<script>
function message(num, id){
var int = setInterval(function(){
num--;
if (num == 0) clearInterval(int);
else id.innerHTML = num;
},1000);
}
</script>
</body>
</html>