Solved

Positioning Drop Down menu's Absolutely. Coolmenu

Posted on 2004-09-07
4
195 Views
Last Modified: 2010-05-18
Hi i'm using coolmenu 4 from dhtmlcentral.com. I'm trying to position the menu on the page somewhere. ABSOLUTELY on the screen in a certain position.

EX: if i want to position it top left.. top: 0 left: 0
etc.. etc...

For some reason it always stays in the same postion that the example was given.
0
Comment
Question by:JoshNYC128
  • 3
4 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 12000794
0
 
LVL 63

Accepted Solution

by:
Zvonko earned 500 total points
ID: 12000985
So for your basic example you have to change this settings:


//Menu properties  
oCMenu.pxBetween=30
oCMenu.fromLeft=20       // this is your X offset
oCMenu.fromTop=100    // this is your Y offset
oCMenu.rows=1
oCMenu.menuPlacement="left"  // <<this is important

Also change this statement:
oCMenu.barY=100


Good luck,
Zvonko

0
 

Author Comment

by:JoshNYC128
ID: 12013233
Awesome thanks a lot Zvonko.  

One last thing i'm curious about is for example.

Lets say i have the menu all the way to the right of the screen. right:0  And the submenus come out further. What would i really want to do in a situation like this. I've designed the page for 760x480. Should i just move the pull downs over more, or make the last submenu smaller in width. And how would i do that for the specific submenu.

Thanks again,
Josh
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 12013599
First of all: there is NO such option as right:0
That wath you are asking is demostrated in the example in my first link.
There you can see how even the creater of CoolMenus has problems when it comes to move the menu in sime right position and hold it there when browser resizes!
Here the link again:
http://dhtmlcentral.com/projects/coolmenus/examples/table_placement1.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now