473,239 Members | 1,596 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

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.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.getEl ementById(id):document.all?document.all[id]:document.layers[id];
if(document.layers)GetElements.style=GetElements;
GetElements.sP=function(x,y){this.style.right=x;th is.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();
Jul 23 '05 #1
4 1978
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.getEl ementById(id):document.all?document.all[id]:document.layers[id]; if(document.layers)GetElements.style=GetElements;
GetElements.sP=function(x,y){this.style.right=x;th is.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/navigat...menu/demo.html
What exactly did you want it to do? ~:\

Jul 23 '05 #2
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.getEl ementById(id):document.all?document.all[id]:document.layers[id]; if(document.layers)GetElements.style=GetElements;
GetElements.sP=function(x,y){this.style.right=x;th is.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/navigat...menu/demo.html
What exactly did you want it to do? ~:\

Jul 23 '05 #3
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.
Jul 23 '05 #4
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 in**@fotografisches.at as an attachment. Keep me posted.

Rob

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Paul | last post by:
HI! I get an error with this code. <SCRIPT language="JavaScript"> If (ifp==""){ ifp="default.htm"} //--></SCRIPT> Basicly I want my iframe to have a default page if the user enters in...
1
by: Lars Hedström | last post by:
Hello I am looking for a floating menu which shows up at the left and then slides over to the right. Anyone knows where I can find such a script? Regards Lars
5
by: jemcgui | last post by:
I've been building a site that has a quirk in it. It will display just as intended in IE but not firefox. The left "nav" div which is floating left will be forced down to the bottom of the page. The...
2
by: Dariusz Tomoñ | last post by:
Hi, I have got JS at: http://www.euroadres.pl/b2b.aspx for floating menu - it activates when scrolling down. Under IE it works ok but under FF it doesn't float and what's more it covers a part...
1
by: elusified | last post by:
Hi guys, i am now doin this website that required a floating menu. the problem is how do i restrict the floating menu to prevent it from goin out of the navigation area when the window is minimize?...
2
by: yela | last post by:
I am working in a floting menu for a website, I found this cool script, it works great, but I need to limit the movement of the menu to a table area, right now it goes up and down through the whole...
1
Parul Bagadia
by: Parul Bagadia | last post by:
I just wrote a code for myself to clear certain things........... When i made this program to execute in turbo c++ it didnt..... it showed following error. I have pasted the output after code is...
0
by: colin | last post by:
Hi, I have an IDE style editor based on the WeifenLuo.WinFormsUI.Docking code, wich I must say seems realy good. Im trying to activate drop down menus and such from various special command...
4
by: Jason Carlton | last post by:
I'm working with the cookie-cutter code located here: http://www.jtricks.com/javascript/navigation/floating.html Very helpful script, BTW! I'm trying to modify it, though, so that the menu...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.