<html>
<head>
<style type="text/css">
<!--
#div1{
position:absolute;
visibility:hidden;
filter:alpha(opacity=70);
background-color:#000;
}
#div2{
position:absolute;
width:300px;
height:250px;
visibility:hidden;
left:expression_r((body.clientWidth-300)/2);
background-color:#CCCCCC;
text-align:center;
}
-->
</style>
<title>JavaScript背景渐变,居中</title>
</head>
<body>
<div id="div1" align="center">
</div>
<div id="div2">
</div>
<img style="cursor:hand;" src="http://www.chinauo.com/she/admin/Upfiles/2007821231312314.jpg" border="0" width="150" height="100" onClick="loading();">
<img style="cursor:hand;" src="http://www.chinauo.com/she/admin/Upfiles/2007812232337.jpg" border="0" width="150" height="100" onClick="loading();"><br>
<img style="cursor:hand;" src="http://www.chinauo.com/she/admin/Upfiles/2007814125333635.jpg" border="0" width="150" height="100" onClick="loading();">
<img style="cursor:hand;" src="http://www.chinauo.com/she/admin/Upfiles/200772235653848.jpg" border="0" width="150" height="100" onClick="loading();">
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
</body>
</html>
<script language="javascript">
var ti = null;
function loading(){
var tmd = 0;
var x1 = document.body.clientWidth;
var y1 = document.body.clientHeight;
}
var x = 0;
function hei(){
}
function unload(){
}
</script>