html load webpage with horizontal scrollbar centered

whocaresaboutit
whocaresaboutit used Ask the Experts™
on
see code below, size of image..

the image width is bigger than the resolution most people use on their computers...

this pages loads with the regular browser horizontal scroll bar justified to the left...

what do I need to make it load centered? so that when the page loads the horizontal scroll bar would appear centered, showing the middle of the image...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body bgcolor="#000000" leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="http://www.domain.com/image.png"  width="1594" height="530" /></td>
  </tr>
</table>
</body>
</html>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Expert
Top Expert 2009
Commented:
<script>
window.onload=function() {
  var w = screen.width/2;
  window.scrollTo(w,0)
}

</script>

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial