codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Floating Menu  sromance at 19:54 on Friday, November 07, 2008
 

The good news is, this is likely a very easy question for you! I am a "rank beginner" at web design, but am working to create a web site for our small school on the Apache Reservation. In working on a template page I utilized a javascript for "Float Menu" from http://www.javascript-fx.com/.

The problem I am having is that I do not want the menu to start its "floating" at the top of the web page; I have a drop down menu that ends at approximately 175 pixels from the top, I want the floating menu to start after this.

How can I make the menu begin its "floating" at about 175 pixels from the top of the window?

The script is:
/*******************************************************************
*
* File : JSFX_FloatingLayer.js © JavaScript-FX.com
* Created : 2001/03/16
* Author : Roy Whittle www.Roy.Whittle.com
* Purpose : To make and positional div float to
* one plave on the page and stay there.
* History
* Date Version Description
* 2001-03-17 2.0 Converted for javascript-fx
***********************************************************************/
JSFX.FloatingLayer = function(theDiv, x, y)
{
//Call the superclass constructor
this.superC = JSFX.Layer;
this.superC(JSFX.findLayer(theDiv), x, y);

this.baseX = x;
this.baseY = y;
this.x = x;
this.y = y;
this.moveTo(x,y);
this.show();

}
JSFX.FloatingLayer.prototype = new JSFX.Layer;

JSFX.FloatingLayer.prototype.animate = function()
{
var targetX;
var targetY;
if(this.baseX > 0)
targetX = JSFX.Browser.getMinX() + this.baseX;
else
targetX = JSFX.Browser.getMaxX() + this.baseX;

if(this.baseY > 0)
targetY = JSFX.Browser.getMinY() + this.baseY;
else
targetY = JSFX.Browser.getMaxY() + this.baseY;

var dx = (targetX - this.x)/8;
var dy = (targetY - this.y)/8;
this.x += dx;
this.y += dy;

this.moveTo(this.x, this.y);
}
JSFX.MakeFloatingLayer = function(theDiv, x, y)
{

JSFX
.MakeFloatingLayer.floaters[JSFX.MakeFloatingLayer.floaters.length] =

new JSFX.FloatingLayer(theDiv, x, y);
}
JSFX.MakeFloatingLayer.floaters = new Array();
JSFX.MakeFloatingLayer.animate = function()
{
var i;
for(i=0 ; i<JSFX.MakeFloatingLayer.floaters.length ; i++)
JSFX.MakeFloatingLayer.floaters.animate();
}
setInterval("JSFX.MakeFloatingLayer.animate()", 30);




I am using DreamWeaver 3 for my first attempts at web design.

Thank you in advance for any support you might lend.





  Re: Floating Menu  Elain at 07:41 on Monday, December 06, 2010
 

I can recommand some info about floating Menu for you, you can search it in Google, and you will find a lot of information, you can choose the best one!
_____________________
flash banner|flash menu


  Re: Floating Menu  simpson123 at 03:36 on Thursday, December 23, 2010
 

Floating menu, you can easily implement it using AJAX tool, and also may take help to your senior or from "W3" school, i'm sure that might help you to sort out your problem.





_______________________________________________
Nanacast

  Re: Floating Menu  manadrive at 06:17 on Sunday, January 02, 2011
 

For your task you can try using floating div Javascript example in confined mode (which will allow you to specify exact place where to have your menu being moved).

  Re: Floating Menu  alexasmither at 09:12 on Monday, January 03, 2011
 

Really helpful information discussed..Its awesome posts


Website design Chennai[/url|[url=http://www.xmediasolution.com/]
Website designers Chennai



  Re: Floating Menu  alexasmither at 09:14 on Monday, January 03, 2011
 

Really helpful information discussed..Its awesome posts


Website design Chennai|
Website designers Chennai










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Create anExpanding/Collapsing Tree Menu for this Tutorial
•  Creat A Calendar With PHP
•  Re: How to access style attributes in DOM using Javascript?
•  Re: Javascript foldout menu help!
•  Ask for Help!
•  Re: Help with 2 level tab menu
•  Using getElementById() to get values from drop down list
•  Re: store string from text file to vector
•  Re: Help me please


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011