あなたの jsfiddle では、そこに行くスペースがないため、上と左に行くことはできません。
計算の代わりに固定値を使用するコードを次に示します。親指を使用して複雑にしたい場合は、読み込み中の画像を事前に読み込む必要があります。マウスがオーバーロードしたときに大きな画像を読み込み/読み込みを表示し、大きな画像が読み込まれた元の画像の src を設定し、スタイルをやり直します。
<!DOCTYPE html>
<html>
<head>
<script>
function expand(obj){
obj.style.position="relative";
obj.style.left="-100px";
obj.style.top="-100px";
obj.style.width="200px";
obj.style.height="200px";
}
function smaller(obj){
obj.style.position="static";
obj.style.width="100px";
obj.style.height="100px";
}
</script>
</head>
<body>
<table>
<tbody>
<tr>
<td colspan=2 style="height:150px">
<p>Some text here Some text here Some text here Some text here
Some text here Some text here Some text here Some text here </p>
</td>
</tr>
<tr>
<td style="width:200px"></td>
<td>
<div style="width:100px;height:100px" id="needThisContainer">
<img src="picture.jpg" style="width:100px;height:100px"
onmouseover="expand(this);"
onmouseout="smaller(this)"/>
</div>
</td>
</tr>
</tbody>
</table>