PDA

View Full Version : Jim's DHTML Menu V5.7 major issues need HELP



pjdbck
01-03-2006, 05:34 AM
Using Jim's DHTML Menu V5.7 found at http://www.dynamicdrive.com/dynamici...menu/index.htm Code Script used at http://hillspropertymgt.com.

I am having major issues with this script it will not stay put - depending on the screen resolution of the user if screen resolution is set to 1280 x 1024 the menu is at the bottom of the picture. If at 800 x 600 the menu is not visible at all. But at 1024 x 768 it is perfect.

I used this menu because the page is masked and not very many of them work with frames. but i have to have this stationary in one place no matter what the resolution anyone have any ideas on how to fix this or another script that can be used with out the frames or resolution issues?

Here is the code from the config.js file



function init()
{
//Main Menu items:
menus[0] = new menu(22, "horizontal", 160, 10, -2, -2, "#022D3E", "#149FD6", "Verdana,Helvetica", 9,
"bold", "bold", "E55A1D", "white", 1, "022D3E", 2, "rollover:images/tri-down1.gif:images/tri-down2.gif", false, true, true, true, 5, true, 0, 0, "black");
menus[0].addItem("index.html", "", 50, "center", "Home", 0);
menus[0].addItem("about.html", "", 150, "center", "Renters Services", 1);
menus[0].addItem("#", "", 140, "center", "Rental Listings", 2);
menus[0].addItem("#", "", 160, "center", "Owner Services", 3);
menus[0].addItem("links.html", "", 150, "center", "Community Links", 0);
menus[0].addItem("contact.html", "", 100, "center", "Contact Us", 0);
menus[0].floatMenu(1100, 787, 0, 2);



//Sub Menu for 3rd Main Menu Item ("Rental Listings"):
menus[1] = new menu(300, "vertical", 0, 0, 0, 0, "#022D3E", "#149FD6", "Verdana,Helvetica", 9, "bold",
"bold", "E55A1D", "white", 1, "022D3E", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", false, true, false, false, 0, true, 0, 0, "black");
menus[1].addItem("friend.html", "", 22, "Left", "Your Friend in the business", 0);
menus[1].addItem("vacstg.html", "", 22, "left", "Vacation and Sturgis Rally Rentals", 0);
menus[1].addItem("fsmr.html", "", 22, "left", "Full Service Management", 0);
menus[1].addItem("rrr.html", "", 22, "left", "Rent Referal", 0);
menus[1].addItem("notify.html", "", 22, "left", "HPM NOTIFY", 0);




//Sub Menu for 3rd Main Menu Item ("Rental Listings"):
menus[2] = new menu(180, "vertical", 0, 0, 0, 0, "#022D3E", "#149FD6", "Verdana,Helvetica", 9, "bold",
"bold", "E55A1D", "white", 1, "022D3E", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", false, true, false, false, 0, true, 0, 0, "black");
menus[2].addItem("apt.html", "", 22, "Left", "Apartments", 0);
menus[2].addItem("comm.html", "", 22, "left", "Duplex/Townhome", 0);
menus[2].addItem("house.html", "", 22, "left", "Houses", 0);
menus[2].addItem("rr.html", "", 22, "left", "Rally & Vacation", 0);
menus[2].addItem("all.html", "", 22, "left", "View All Listings", 0);
menus[2].addItem("notify.html", "", 22, "left", "HPM NOTIFY", 0);



//Sub Menu for 4th Main Menu Item ("Search"):
menus[3] = new menu(300, "vertical", 0, 0, 0, 0, "#022D3E", "#149FD6", "Verdana,Helvetica", 9, "bold", "bold", "E55A1D", "white", 1, "022D3E", 2, ">>", false, true, false, false, 0, true, 0, 0, "black");
menus[3].addItem("success.html", "", 22, "left", "Our Formula For Your Success", 0);
menus[3].addItem("rrs.html", "", 22, "left", "Rent Referal", 0);
menus[3].addItem("fspm.html", "", 22, "left", "Full Service Property Management", 0);
menus[3].addItem("vrs.html", "", 22, "left", "Vacation Rental", 0);
menus[3].addItem("srrs.html", "", 22, "left", "Sturgis Rally Rentals", 0);
menus[3].addItem("notify.html", "", 22, "left", "HPM NOTIFY", 0);


} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.

HELP ME PLEASE.....:( :confused:

Paul

jmill89
01-03-2006, 06:29 PM
Removing the line:
menus[0].floatMenu(1100, 787, 0, 2);

will cause the menu to be absolutly positioned as defined in menus[0] = new menu() regardless of resolution. The floatMenu() function attempts to center the menu based on resolution.

Jason