C
Christina Joch
Here´s the script for my floating menu.
Is it possible to assign it to a table cell and if yes how to do it?
I hope you mean what I want to do?
Thanks for help,
lg
Christina
<!-- Start
if (!document.layers)
document.write('<div id="Floater" style="position:absolute">')
document.write('<layer id="Floater">');
document.write('<a href="material.htm"><img
src="picts/float-material.gif" border="0" vspace="1"></a><br>');
document.write('<a href="cyanotypie.htm"><img
src="picts/float-cyanotypie.gif" border="0" vspace="1"></a><br>');
document.write('<a href="kallitypie.htm"><img
src="picts/float-kallitypie.gif" border="0" vspace="1"></a><br>');
document.write('<a href="gummidruck.htm"><img
src="picts/float-gummidruck.gif" border="0" vspace="1"></a><br>');
document.write('<a href="index.htm"><img src="picts/float-home.gif"
border="0" vspace="1"></a><br>');
document.write('<a href="#top"><img src="picts/float-top.gif" border="0"
vspace="1"></a><br>');
document.write('</layer>');
if (!document.layers)
document.write('</div>')
function FloatMenu()
{
var Xloc = 0,
Yloc = 600;
var ns = (navigator.appName.indexOf("Netscape") != -1);
function SetMenu(id)
{
var
GetElements=document.getElementById?document.getElementById(id):document.all?document.all[id]:document.layers[id];
if(document.layers)GetElements.style=GetElements;
GetElements.sP=function(x,y){this.style.right=x;this.style.top=y;};
GetElements.x = Xloc;
GetElements.y = ns ? pageYOffset + innerHeight :
document.body.scrollTop + document.body.clientHeight;
GetElements.y -= Yloc;
return GetElements;
}
window.LoCate_XY=function()
{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop +
document.body.clientHeight;
ftlObj.y += (pY - Yloc - ftlObj.y)/15;
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("LoCate_XY()", 10);
}
ftlObj = SetMenu("Floater");
LoCate_XY();
}
FloatMenu();
Is it possible to assign it to a table cell and if yes how to do it?
I hope you mean what I want to do?
Thanks for help,
lg
Christina
<!-- Start
if (!document.layers)
document.write('<div id="Floater" style="position:absolute">')
document.write('<layer id="Floater">');
document.write('<a href="material.htm"><img
src="picts/float-material.gif" border="0" vspace="1"></a><br>');
document.write('<a href="cyanotypie.htm"><img
src="picts/float-cyanotypie.gif" border="0" vspace="1"></a><br>');
document.write('<a href="kallitypie.htm"><img
src="picts/float-kallitypie.gif" border="0" vspace="1"></a><br>');
document.write('<a href="gummidruck.htm"><img
src="picts/float-gummidruck.gif" border="0" vspace="1"></a><br>');
document.write('<a href="index.htm"><img src="picts/float-home.gif"
border="0" vspace="1"></a><br>');
document.write('<a href="#top"><img src="picts/float-top.gif" border="0"
vspace="1"></a><br>');
document.write('</layer>');
if (!document.layers)
document.write('</div>')
function FloatMenu()
{
var Xloc = 0,
Yloc = 600;
var ns = (navigator.appName.indexOf("Netscape") != -1);
function SetMenu(id)
{
var
GetElements=document.getElementById?document.getElementById(id):document.all?document.all[id]:document.layers[id];
if(document.layers)GetElements.style=GetElements;
GetElements.sP=function(x,y){this.style.right=x;this.style.top=y;};
GetElements.x = Xloc;
GetElements.y = ns ? pageYOffset + innerHeight :
document.body.scrollTop + document.body.clientHeight;
GetElements.y -= Yloc;
return GetElements;
}
window.LoCate_XY=function()
{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop +
document.body.clientHeight;
ftlObj.y += (pY - Yloc - ftlObj.y)/15;
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("LoCate_XY()", 10);
}
ftlObj = SetMenu("Floater");
LoCate_XY();
}
FloatMenu();