Hi there topolino,
there is really no need to use an ancient javascript to fix an element on your . 
CSS "position-fixed" is now used instead.
Here is a basic example...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>css position fixed</title>
<style type="text/css">
#fixed-box {
position:fixed;
top:278px;
right:0;
width:324px;
height:200px;
border:1px solid #000;
background-color:#fff;
line-height:200px;
text-align:center;
}
#page {
width:3000px;
height:3000px;
}
</style>
</head>
<body>
<div id="fixed-box"> I am going nowhere!</div>
<div id="page">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec
ultricies sollicitudin nisi, ut molestie felis adipiscing sit
amet. Sed auctor vehicula commodo. Nam a nibh neque, vitae
faucibus felis. Vivamus at metus eget eros consequat fringilla.
Quisque magna magna, laoreet eu tempus sit amet, fringilla at
tellus. Praesent felis tortor, scelerisque vitae fringilla
non, porttitor et lacus. Ut ut sapien nec quam tincidunt
consectetur in nec lacus.
</p>
</div>
</body>
</html>
coothead
Bookmarks