Solved

Positioning Drop Down menu's Absolutely. Coolmenu

Posted on 2004-09-07
4
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…

734 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