multiple dhtml scripts on the same page....

davidjaymz's picture

He has: 193 posts

Joined: Jul 2001

hi guys.
I'm trying to run two scripts on my page. One does a horizontal drop down menu. And the other does a Vertical 'drop down' menu.
I've posted the pages at the following addresses

Working Horizontal Drop Down Menu
Working side (Vertical) menu
Both codes together on page side menu doesn't work

Know both codes are different in the .js they use. The Sidemenu uses:
exmplmenu_var.js and menu_com.js (goes just below the tag)
While the horizontal bar uses:
-menu.js
-custom.js
-menu_ie.js
-menu_ns4.js
-menu_ns6.js
-menu_op5.js
-sniffer.js
-style.js
(Goes in the tag)

Know the side menu I can change to be be an horizontal top menu. Is this my best bet. run the same code twice with that specific variation. (changing the .js file names and calls for them as well)
or does someone have a better solution.

Also anyone know how I can place the side bar inside my table? or should I just keep it at the side...

Thanx for all your help

DavidJaymz

davidjaymz's picture

He has: 193 posts

Joined: Jul 2001

Okay.
I went through the exmplmenu_var.js file and changed all the symbol(?) terms. The ones after 'var' so that they had VERT in front of them:
e.g var NoOffFirstLineMenus=5
Became var VERTNoOffFirstLineMenus=5 and so on throughout the file.
I then went into the menu_com.js file and changed all reference that i'd changed in exmplmenu_var.js so that they matched... and guess what. the menu appeared but was black and nothing was there just a black box...
This wasn't with the two codes on the same page, just the one...
Did I change the wrong things?
Thanx in advance for any help

DavidJaymz

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

I am using the same vertical menu on one of my sites. It has been a booger to fix. I don't know about getting both to work on the same page but as for placing the vertical menu inside your table....you will have to change the variables in the "exmplmenu_var.js"

This is what I have mine set at.

var StartTop=130; //set vertical offset
var StartLeft=2; //set horizontal offset

This puts the top of the menu 130 pixels from the top and the left side of the menu 2 pixels from the left.

You can see how I am using mine here:
http://www.virtualgraphiti.net/template2.html

Hope this helps.

disastermaster

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

David,
I noticed that you hadn't responded to my last post yet and
I have moved the site with the DHTML menu to its new home at:
ettfire.com if you still wants to see it in action.

disastermaster

davidjaymz's picture

He has: 193 posts

Joined: Jul 2001

cheers DM
I've decided against the two menus and have gone with just a single top horizontal bar... Thanks for the positioning tip. The only problem i've got is that it works fine in IE but looks off in mac ie and nutscrape... does anyone have any idea why position in works on some but not on others...
Laughing out loud
DavidJaymz

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.