Кнопка к началу текста всегда в правом нижнем углу.
<html>
<head>
<title>Кнопка к началу текста всегда в правом нижнем углу.</title>
<style>
#watermark { FONT-SIZE: 8pt; FONT-FAMILY: Arial}
</style>
</head>
<body>
<DIV id=waterMark style="POSITION: absolute"><A onclick=window.scrollTo(0,0)
href="#"><IMG width="20" height="20" src="../img/arrow_green.gif" border=0></A></DIV>
<SCRIPT language=JavaScript1.2>
<!--
// Based on watermark script by Paul Anderson, CNET Builder.com. All rights reserved.
markW = 90; // pixels wide
markH = 40; // pixels high
markX = 99; // percent right
markY = 99; // percent down
markRefresh = 50; // milliseconds
// set common object reference
if (!document.all) document.all = document;
if (!document.all.waterMark.style) document.all.waterMark.style = document.all.waterMark;
wMark = document.all.waterMark.style;
wMark.width = markW;
wMark.height = markH;
navDOM = window.innerHeight; // Nav DOM flag
function setVals() {
barW = 0; // scrollbar compensation for PC Nav
barH = 0;
if (navDOM) {
if (document.height > innerHeight) barW = 20;
if (document.width > innerWidth) barH = 20;
} else {
innerWidth = document.body.clientWidth;
innerHeight = document.body.clientHeight;
}
posX = ((innerWidth - markW)-barW) * (markX/100);
posY = ((innerHeight - markH)-barH) * (markY/100);
}