OnLoad="setVariables();checkLocation()"
原始檔如下..<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
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(y);
eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}
// End -->
</SCRIPT>
OnLoad="setVariables();checkLocation()"
<div id="object1" style="position:absolute; visibility:show; left:0px;
top:0px; z-index:2">
<table width=140 border=2 cellspacing=5 bgcolor="#7BC7FF"
bordercolor="#F0F0F0">
<tr><td><CENTER><font size="2"> 浮的印選單</font></CENTER></td>
</tr>
<tr><td>
<p align="center"><a href="http://www.yahoo.com"
target="_blank">
<font size="2">Yahoo</font></a></p>
</td>
</tr>
<tr><td>
<p align="center"><a href="http://www.kimo.com"
target="_blank">
<font size="2">Kimo</font></a></p>
</td>
</tr>
<tr><td>
<p align="center"><a href="http://www.timway.com"
target="_blank">
<font size="2">Timway</font></a></p>
</td>
</tr>
<tr><td>
<p align="center"><a href="http://www.sina.com"
target="_blank">
<font size="2">新浪網</font></a></p>
</td>
</tr>
</table>
</div>