Solved

Positioning Drop Down menu's Absolutely. Coolmenu

Posted on 2004-09-07
4
192 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…

708 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

13 Experts available now in Live!

Get 1:1 Help Now