منوی متحرک در صفحه
<script>
if (!document.div)
document.write(‘<div id=”divStayTopLeft” style=”position:absolute”>’)
</script>

<div id=”divStayTopLeft”>
<!–EDIT BELOW CODE TO YOUR OWN MENU–>
<table width=”130″ border=”1″ align=”left” cellpadding=”0″
cellspacing=”0″ bordercolor=”#999999″ bgcolor=”#CCCCCC”>
<tr>
<td width=”100%” bgcolor=”#0066CC”>
<p align=”center” class=”style1″><font size=”4″>Menu</font></p></td>
</tr>
<tr>
<td width=”100%” align=”center” bgcolor=”#f5f5f5″>
<p align=”center”> <a href=”http://www.dynamicdrive.com” target=”_blank”><br>
webkaran</a><br>
———-<br>
<a href=”http://www.yahoo.com/” target=”_blank”>yahoo!</a><br>
———-<br>
<a href=”http://www.google.com/” target=”_blank”>Google</a><br>
———-<br>
<a href=”http://www.ask.com/” target=”_blank”>Ask</a><br>
<br>
</p>
</td>
</tr>
</table>
<!–END OF EDIT–>
</div>
<script type=”text/javascript”>
//Enter “frombottom” or “fromtop”
var verticalpos=”frombottom”

if (!document.layers)
document.write(‘</div>’)
function JSFX_FloatTopDiv()
{
var startX = 20,
startY = 190;
var ns = (navigator.appName.indexOf(“Netscape”) != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos==”fromtop”)
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos==”fromtop”){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY – ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY – startY – ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout(“stayTopLeft()”, 10);
}
ftlObj = ml(“divStayTopLeft”);
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>