PDA

View Full Version : Dhtml Menu at right... WANTED :)



chrbar
08-06-2006, 01:34 AM
Hello,

I'm looking for a Dhtml Menu and HV Menu v5.5 could be a good one... but I need to place the Menu to the right of the page and this script offers a position from left side only!
I would like to build a full page Web site (100% main frame), thus I can't use a "large" value about the left position to force it to the right, because the page width will change according to the screen resolution... I have to use a position value from right only!

For example, check the menu from ArtLogic Web site (http://www.artlogic.com/)... nice!
This menu is from ypSlideOutMenusC (an OpenSource project), but I meet another problem with it... I need submenu and it doesn't offer this option :(

I've to be honest with you, I'm really not a Web programmer, I know to integrate some scripts inside page, but no more!
DynamicDrive is a fabulous tresor for people like me :)

If someone can help me to upgrade this script to be able to set from the right page side... you are Welcome!

Thanks a lot ;)
Christophe

1) Script Title:
HV Menu v5.5
or
Jim's DHTML Menu V5.7

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm
or
http://www.dynamicdrive.com/dynamicindex1/jimmenu/index.htm

3) Describe problem:
Describe above.

jscheuer1
08-06-2006, 04:32 AM
With HV, you can do something like so, at the top of exmplmenu_var.js insert this function like so:


/***********************************************************************************
* (c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
* For info write to menus@burmees.nl *
* You may remove all comments for faster loading *
***********************************************************************************/

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

var NoOffFirstLineMenus=5; // Number of first level items

Then a little ways down, for the variable "StartLeft' do something like this:


var StartLeft=window.innerWidth?window.innerWidth-230:ietruebody().clientWidth-230;

where 230 is the number of pixels from the right that you want the menu to appear. It should be at least the actual width of the menu.

chrbar
08-07-2006, 06:03 PM
Thanks jscheuer1 for your help :)
I've be able to set this menu via your script!

But I saw that HV Menu doesn't offer CSS settings :(
I can't use different colors between/each menus and submenus!

Thus I'm looking for a great Dhtml Menu (non-commercial), including multi-level menus and CSS settings... which can be positioned/set from the right of the page... like on ArtLogic Web site (http://www.artlogic.com/).

If you know a good one ir if another user knows a good one... please let me know!

Thanks a lot ;)
Chris

jscheuer1
08-07-2006, 08:41 PM
HV will allow you to put <span></span> and probably other elements into its configuration fields. Once you've done that, you can add style, id's and/or classes to the items. About the same amount of work as what you are talking about but, less organized. There are tons of multilevel menus here at DD, I just noticed a few new ones added the other day (see the top of the list at the link below). I can't keep track of all the features:

http://www.dynamicdrive.com/dynamicindex1/indexc.html