is it possible to add a Floating Menu?
5 posters
Page 1 of 1
is it possible to add a Floating Menu?
Is it possible to add a Floating Menu?
If yes, who?
image
If yes, who?
image
- Spoiler:
LeiZhen- New Member
- Posts : 20
Reputation : 0
Language : English
Re: is it possible to add a Floating Menu?
Hello,
You mean that 'quick links' box? and that should move along as the page scrolls, right?
You mean that 'quick links' box? and that should move along as the page scrolls, right?
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: is it possible to add a Floating Menu?
Hi,ankillien wrote:Hello,
You mean that 'quick links' box? and that should move along as the page scrolls, right?
Yes Sir.

- Spoiler:
LeiZhen- New Member
- Posts : 20
Reputation : 0
Language : English
Re: is it possible to add a Floating Menu?
Hello,
You can modify this code and add in your menu.
Edit the code and add in your menu between these tags. The space where the red text are is the place you can enter your menu in the code.
Hope I helped,
You can modify this code and add in your menu.
- Code:
<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer id="divStayTopLeft">
<!--Source Of Your Menu-->
<!--END OF Menu-->
</layer>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 150;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
Edit the code and add in your menu between these tags. The space where the red text are is the place you can enter your menu in the code.
<!--Source Of Your Menu-->
***/Youe menu here
<!--END OF Menu-->
Hope I helped,

Master Marc- Hyperactive
-
Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: is it possible to add a Floating Menu?
Where do you put it?
blogger- Forumember
-
Posts : 366
Reputation : 0
Language : English, webkinz, beepish, baby talk, and tech
Location : WONDER-LAND!!! XD
Re: is it possible to add a Floating Menu?
You can add it anywhere if there is an html source,
Example :
~By using template editing
~On an html page
~Homepage Message

Example :
~By using template editing
~On an html page
~Homepage Message
Master Marc- Hyperactive
-
Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: is it possible to add a Floating Menu?
How would you do it on an HTML page? I get lost when i try to do HTML pages. 

blogger- Forumember
-
Posts : 366
Reputation : 0
Language : English, webkinz, beepish, baby talk, and tech
Location : WONDER-LAND!!! XD
Re: is it possible to add a Floating Menu?
First, you'll have to get a little knowledge about html.blogger wrote:How would you do it on an HTML page? I get lost when i try to do HTML pages.
Tutorials => http://www.w3schools.com/
Then, you'll be able to create your own html pages once you learnt about html.
ACP=>Modules Tab=>HTML=>HTML pages management=>Create a new html page
Add the code, and make sure that you have lots of content on your page so that there are scroll bars, so when you scroll down, the floating menu would scroll as well,

Master Marc- Hyperactive
-
Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: is it possible to add a Floating Menu?
Well, I am not sure if this is exactly what you wnt but try putting this code in homepage message.
- Code:
<div style="position:fixed; bottom:30px; right:20px; padding:5px; background:white; border:1px solid #666; color : #333; width:150px; min-height:100px;">
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a>
</div>
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: is it possible to add a Floating Menu?
I did it and both didn't work. Can you just give me a step-by-step guide on how to do this?
blogger- Forumember
-
Posts : 366
Reputation : 0
Language : English, webkinz, beepish, baby talk, and tech
Location : WONDER-LAND!!! XD
Re: is it possible to add a Floating Menu?
Hello Blogger,
I've added Ankillien's menu to the code I've posted.
You can change the menu if you would like. Modify Ankillien's menu and add it between these tags as I said before:
Note : You have to scroll down your page so that this script would work,
I've added Ankillien's menu to the code I've posted.
- Code:
<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer id="divStayTopLeft">
<!--Source Of Your Menu-->
<div style="position:fixed; bottom:30px; right:20px; padding:5px; background:white; border:1px solid #666; color : #333; width:150px; min-height:100px;">
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a>
</div>
<!--END OF Menu-->
</layer>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 150;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
You can change the menu if you would like. Modify Ankillien's menu and add it between these tags as I said before:
<!--Source Of Your Menu-->
***/Youe menu here
<!--END OF Menu-->
Note : You have to scroll down your page so that this script would work,

Master Marc- Hyperactive
-
Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: is it possible to add a Floating Menu?
Master Marc wrote:Hello Blogger,
I've added Ankillien's menu to the code I've posted.
- Code:
<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer id="divStayTopLeft">
<!--Source Of Your Menu-->
<div style="position:fixed; bottom:30px; right:20px; padding:5px; background:white; border:1px solid #666; color : #333; width:150px; min-height:100px;">
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a>
</div>
<!--END OF Menu-->
</layer>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 150;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
You can change the menu if you would like. Modify Ankillien's menu and add it between these tags as I said before:
<!--Source Of Your Menu-->
***/Youe menu here
<!--END OF Menu-->
Note : You have to scroll down your page so that this script would work,
o copied it right but it come sin a red box and there is no x to close it my use is complaining about it
Mystic_gohan2- Forumember
- Posts : 700
Reputation : 30
Language : English
Re: is it possible to add a Floating Menu?
Hello,
Am getting the feeling that you don't want this for an html page...
I think you will like the pop up log in menu that forumotion provides.
Please read this tutorial here.
Am getting the feeling that you don't want this for an html page...
I think you will like the pop up log in menu that forumotion provides.
Please read this tutorial here.
Master Marc- Hyperactive
-
Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: is it possible to add a Floating Menu?
sorry i know about pop up .
Mystic_gohan2- Forumember
- Posts : 700
Reputation : 30
Language : English
Re: is it possible to add a Floating Menu?
Oh. You wanted the floating menu to close.
Add this code please where ever you want the close button.
Add this code please where ever you want the close button.
- Code:
<form><input type=button value="Close Window" onClick="javascript:window.close();"></form>
Master Marc- Hyperactive
-
Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: is it possible to add a Floating Menu?
when i click on close window it does not close
Mystic_gohan2- Forumember
- Posts : 700
Reputation : 30
Language : English
Re: is it possible to add a Floating Menu?
Try this:
- Code:
<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer id="divStayTopLeft">
<!--Source Of Your Menu-->
<div style="position:fixed; bottom:30px; right:20px; padding:5px; background:white; border:1px solid #666; color : #333; width:150px; min-height:100px;">
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a>
<br/>
<form><input type=button value="Close Window" onClick="javascript:window.close();"></form>
</div>
<!--END OF Menu-->
</layer>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 150;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
Master Marc- Hyperactive
-
Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: is it possible to add a Floating Menu?
not working
Mystic_gohan2- Forumember
- Posts : 700
Reputation : 30
Language : English
Re: is it possible to add a Floating Menu?
I forgot to ask you to add it between your body tags,sorry.Mystic_gohan2 wrote:not working
- Code:
<body></body>
Test : Click Here
Master Marc- Hyperactive
-
Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: is it possible to add a Floating Menu?
thankyou it works
Mystic_gohan2- Forumember
- Posts : 700
Reputation : 30
Language : English
Re: is it possible to add a Floating Menu?
Master Marc wrote:I forgot to ask you to add it between your body tags,sorry.Mystic_gohan2 wrote:not working
- Code:
<body></body>
Test : Click Here
the position of the box is fixed?
LeiZhen- New Member
- Posts : 20
Reputation : 0
Language : English
Re: is it possible to add a Floating Menu?
thanks for the help.
have a nice day
have a nice day

LeiZhen- New Member
- Posts : 20
Reputation : 0
Language : English

» Help in Floating Menu
» floating menu plz?
» Error with "Floating Menu"
» How to put floating menu in CSS
» Floating menu
» floating menu plz?
» Error with "Floating Menu"
» How to put floating menu in CSS
» Floating menu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum