This is the very common "using a loop variable in a callback" problem.
As you're using jQuery the simplest fix is a data parameter to the handler:
var x=1;
while (x <= 15) {
$("td#id"+x).mouseover({ x: x }, function(ev) {
this.title = ev.data.x;
});
x++;
}
That said, why are you only setting this in a mouseover function? The title should be added to the elements directly, just once:
for (var x = 1; x <= 15; ++x) {
document.getElementById('id' + x).title = x;
}
Doing it in a mouseover handler won't actually break anything, but it means you've registered an event handler that will be invoked (and update the DOM) over and over every time you move from one cell to another.