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.laye rs)
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="cyanotypi e.htm"><img
src="picts/float-cyanotypie.gif" border="0" vspace="1"></a><br>');
document.write( '<a href="kallitypi e.htm"><img
src="picts/float-kallitypie.gif" border="0" vspace="1"></a><br>');
document.write( '<a href="gummidruc k.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"><im g src="picts/float-top.gif" border="0"
vspace="1"></a><br>');
document.write( '</layer>');
if (!document.laye rs)
document.write( '</div>')
function FloatMenu()
{
var Xloc = 0,
Yloc = 600;
var ns = (navigator.appN ame.indexOf("Ne tscape") != -1);
function SetMenu(id)
{
var
GetElements=doc ument.getElemen tById?document. getElementById( id):document.al l?document.all[id]:document.layer s[id];
if(document.lay ers)GetElements .style=GetEleme nts;
GetElements.sP= function(x,y){t his.style.right =x;this.style.t op=y;};
GetElements.x = Xloc;
GetElements.y = ns ? pageYOffset + innerHeight :
document.body.s crollTop + document.body.c lientHeight;
GetElements.y -= Yloc;
return GetElements;
}
window.LoCate_X Y=function()
{
var pY = ns ? pageYOffset + innerHeight : document.body.s crollTop +
document.body.c lientHeight;
ftlObj.y += (pY - Yloc - ftlObj.y)/15;
ftlObj.sP(ftlOb j.x, ftlObj.y);
setTimeout("LoC ate_XY()", 10);
}
ftlObj = SetMenu("Floate r");
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.laye rs)
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="cyanotypi e.htm"><img
src="picts/float-cyanotypie.gif" border="0" vspace="1"></a><br>');
document.write( '<a href="kallitypi e.htm"><img
src="picts/float-kallitypie.gif" border="0" vspace="1"></a><br>');
document.write( '<a href="gummidruc k.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"><im g src="picts/float-top.gif" border="0"
vspace="1"></a><br>');
document.write( '</layer>');
if (!document.laye rs)
document.write( '</div>')
function FloatMenu()
{
var Xloc = 0,
Yloc = 600;
var ns = (navigator.appN ame.indexOf("Ne tscape") != -1);
function SetMenu(id)
{
var
GetElements=doc ument.getElemen tById?document. getElementById( id):document.al l?document.all[id]:document.layer s[id];
if(document.lay ers)GetElements .style=GetEleme nts;
GetElements.sP= function(x,y){t his.style.right =x;this.style.t op=y;};
GetElements.x = Xloc;
GetElements.y = ns ? pageYOffset + innerHeight :
document.body.s crollTop + document.body.c lientHeight;
GetElements.y -= Yloc;
return GetElements;
}
window.LoCate_X Y=function()
{
var pY = ns ? pageYOffset + innerHeight : document.body.s crollTop +
document.body.c lientHeight;
ftlObj.y += (pY - Yloc - ftlObj.y)/15;
ftlObj.sP(ftlOb j.x, ftlObj.y);
setTimeout("LoC ate_XY()", 10);
}
ftlObj = SetMenu("Floate r");
LoCate_XY();
}
FloatMenu();
Comment