Question on Floating Menu Script...

Discussion in 'Javascript' started by Christina Joch, Dec 16, 2004.

  1. 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();
     
    Christina Joch, Dec 16, 2004
    #1
    1. Advertising

  2. Christina Joch

    RobB Guest

    Christina Joch wrote:
    > 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();


    Christina...that looks to be a *very* old version of Roy Whittle's
    FloatMenu. It's gone through several upgrades in the interim; I believe
    this is the most recent version:

    http://www.javascript-fx.com/navigation/floatmenu/demo.html
    What exactly did you want it to do? ~:\
     
    RobB, Dec 17, 2004
    #2
    1. Advertising

  3. Christina Joch

    RobB Guest

    Christina Joch wrote:
    > 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();


    Christina...that looks to be a *very* old version of Roy Whittle's
    FloatMenu. It's gone through several upgrades in the interim; I believe
    this is the most recent version:

    http://www.javascript-fx.com/navigation/floatmenu/demo.html
    What exactly did you want it to do? ~:\
     
    RobB, Dec 17, 2004
    #3
  4. My webpage is designed with a table.
    I used to have it 100% wide, but now I decided only to give them 70% wide.
    The floating menu still stays in the right side, but I want it to move
    into the table, on the right side in the white area.
    Here you can see what I mean:

    <http://www.fotografisches.at/edeldruck.htm>

    Don´t mind the design, I will change it.
    I hope you know what it should look like and what I want to do.
    Thanks
    Christina

    P.s. thanks for the link to the newest version.
     
    Christina Joch, Dec 17, 2004
    #4
  5. Christina Joch

    RobB Guest

    Christina Joch wrote:
    > My webpage is designed with a table.
    > I used to have it 100% wide, but now I decided only to give them 70%

    wide.
    > The floating menu still stays in the right side, but I want it to

    move
    > into the table, on the right side in the white area.
    > Here you can see what I mean:
    >
    > <http://www.fotografisches.at/edeldruck.htm>
    >
    > Don´t mind the design, I will change it.
    > I hope you know what it should look like and what I want to do.
    > Thanks
    > Christina
    >
    > P.s. thanks for the link to the newest version.


    Hi Christina. Sorry for the delay.

    Played around with your homepage and tried a few things. Emailed the
    results to as an attachment. Keep me posted.

    Rob
     
    RobB, Dec 18, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Axel
    Replies:
    1
    Views:
    645
  2. Karl-Inge Reknes

    Menu question (list menu)

    Karl-Inge Reknes, Dec 22, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    157
    Karl-Inge Reknes
    Dec 22, 2006
  3. teeshift
    Replies:
    2
    Views:
    258
    Chris Pearl
    Dec 1, 2006
  4. Lars Hedström

    Floating menu

    Lars Hedström, Jan 9, 2006, in forum: Javascript
    Replies:
    1
    Views:
    73
  5. Replies:
    0
    Views:
    169
Loading...

Share This Page