下面是网页源码.图片不好发,但不影响测试.
网页里有个object1.就是这个东东.
网页内容是一个电子书内容模板.
如果script代码运行正常,object1会自动保持在右上角.
先谢过linchhero.
----------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Ly</title>
<style>
<!--
.title_index{ /*大标题样式*/
font-size: 18pt;
font-family: "黑体";
color: #000000;
font-weight: bold;
}
.title_page{ /*题目样式*/
font-size: 12pt;
font-family: "黑体";
color: #000000;
font-weight: bold;
}
.content{/*内容样式*/
font-size: 12pt;
font-family: "宋体";
line-height: 16pt; /*行距*/
}
.content img {
margin: 7px;
}
.9{ font-size: 9pt }
.TitleLinks{ /*索引列表的停靠方位*/
text-align: center;
}
.TitleLinks .content { /*索引页使用文字列表符时,修改行距*/
line-height: 20pt;
}
.TitleLinks .content img { /*索引页使用图形列表符时,修改行距*/
margin-top: 7px;
margin-bottom: 7px;
}
A:link {text-decoration: none; color:#000000}
A:visited {text-decoration: none; color: #000000}
A:active {text-decoration: none; color: #000000}
A:hover {text-decoration: underline; color: #000000 }
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setVariables();checkLocation()" background="04.jpg">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="964">
<tr>
<td><img border="0" src="shang.jpg" width="964" height="220"></td>
</tr>
<tr>
<td background="02.jpg">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="80%">
<tr>
<td width="39"></td>
<td width="726">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="99%">
<tr>
<td width="100%">
<p align="center"><font size="4"><b>[PART1]</b></font></p>
<p align="center"> </td>
</tr>
<tr>
<td width="100%">
<p style="line-height: 150%; margin-left: 10">[PART0]</p>
<p style="line-height: 150%; margin-left: 10"> </td>
</tr>
<tr>
<td width="100%">
<p align="center">&nbsp;</p>
<p align="center">资料收集于网上,版权归原作者所有</p>
<p align="center">本书由“XXXX”免费制作</p>
<p align="center"> </td>
</tr>
</table>
</div>
</td>
<td width="32"></td>
</tr>
</table>
</div></td>
</tr>
<tr><td><div align="center"><img border="0" src="xia.jpg"></div></td></tr>
<tr>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table></center>
</div>
<script language="JavaScript">
function setVariables() {
if (navigator.appName == "Netscape"
{
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else {
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
}
function checkLocation() {
object="object1";
yy=eval
;
eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}
</script> <div id="object1"
style="right:0; position: absolute; top: 194; z-index: 5; width: 81; height: 293"><table border="0"
cellPadding="0" cellSpacing="10" width="68">
<TBODY>
<tr>
<td width="68"><map name="FPMap0">
<area href="[PREVPAGE]" shape="rect" coords="12, 56, 54, 79">
<area href="[INDEXPAGE]" shape="rect" coords="10, 82, 58, 99">
<area href="[NEXTPAGE]" shape="rect" coords="10, 103, 58, 122"></map><img border="0" src="Untitled-2.gif" usemap="#FPMap0" width="70" height="130"></td>
</tr>
</TBODY>
</table>
</div>
</body>
</html>