Question on Floating Menu Script...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christina Joch

    Question on Floating Menu Script...

    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();
  • RobB

    #2
    Re: Question on Floating Menu Script...

    Christina Joch wrote:[color=blue]
    > 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"[/color]
    border="0"[color=blue]
    > 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
    >[/color]
    GetElements=doc ument.getElemen tById?document. getElementById( id):document.al l?document.all[id]:document.layer s[id];[color=blue]
    > 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 +[/color]
    [color=blue]
    > 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();[/color]

    Christina...tha t 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:


    What exactly did you want it to do? ~:\

    Comment

    • RobB

      #3
      Re: Question on Floating Menu Script...

      Christina Joch wrote:[color=blue]
      > 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"[/color]
      border="0"[color=blue]
      > 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
      >[/color]
      GetElements=doc ument.getElemen tById?document. getElementById( id):document.al l?document.all[id]:document.layer s[id];[color=blue]
      > 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 +[/color]
      [color=blue]
      > 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();[/color]

      Christina...tha t 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:


      What exactly did you want it to do? ~:\

      Comment

      • Christina Joch

        #4
        Re: Question on Floating Menu Script...

        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.fotografisc hes.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.

        Comment

        • RobB

          #5
          Re: Question on Floating Menu Script...

          Christina Joch wrote:[color=blue]
          > My webpage is designed with a table.
          > I used to have it 100% wide, but now I decided only to give them 70%[/color]
          wide.[color=blue]
          > The floating menu still stays in the right side, but I want it to[/color]
          move[color=blue]
          > into the table, on the right side in the white area.
          > Here you can see what I mean:
          >
          > <http://www.fotografisc hes.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.[/color]

          Hi Christina. Sorry for the delay.

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

          Rob

          Comment

          Working...