PDA

View Full Version : menu bar



krysti
02-22-2005, 02:34 AM
on
http://www.dynamicdrive.com/dynamicindex1/sm/menucontext.txt
and
http://www.dynamicdrive.com/dynamicindex1/sm/menu.txt
for the menu bar at
http://www.dynamicdrive.com/dynamicindex1/sm/index.htm

is there a way that all the top selections of the accual menu bar (meaning the 5 selections going acrross "Web Building Sites | News Sites | Free Downloads | Search Engines | Miscellaneous" not the selections going down) can be directed to a different links


more explanation: these are the selections on the menu bar

Web Building Sites | News Sites | Free Downloads | Search Engines | Miscellaneous

each go to a different page when they are clicked on
Web Building Sites goes to page 3
News Sites goes to page 5
Free Downloads goes to page 4
Search Engines goes to page 2
Miscellaneous goes to page 1

what do i need to change to make this possible

simonf
02-22-2005, 05:08 AM
Hi

In you at the link into the menucontect.js file:

menu.addItem("webmasterid", "Web Building Sites", "Web Building Sites", "http://www.dynamicdrive.com/", null);

If makes the top bar label have a direct url link

krysti
02-22-2005, 03:06 PM
but there is still a bug if i do change that property from

menu.addItem("webmasterid", "Web Building Sites", "Web Building Sites", null, null);

to

menu.addItem("webmasterid", "Web Building Sites", "Web Building Sites", "http....com", null);

the option that appears under "Web Building Sites" when you have the mouse over it no longer appears

ok this i what i changed the code to and you can even go to the page i used the code for to see what i mean...

http://www.geocities.com/k_dorough27/postIT.html


code:
//Top Nav bar script v2.1- http://www.dynamicdrive.com/dynamicindex1/sm/index.htm

function showToolbar()
{
// AddItem(id, text, hint, location, alternativeLocation);
// AddSubItem(idParent, text, hint, location, linktarget);

menu = new Menu();
menu.addItem("webmasterid", "MAIN PAGE", "To every link in my site", "http://www.geocities.com/k_dorough27/mainpage.html", null);
menu.addItem("newsid", "Pick a Doll", "Put your name on my webpage", "http://www.geocities.com/k_dorough27/friends.html", null);
menu.addItem("freedownloadid", "Backstreet Boys", "Backstreet Boys!", "http://www.geocities.com/k_dorough27/BOYS/BsB.html", null);
menu.addItem("searchengineid", "Port Isabel, TX", "My Home Town", "http://www.geocities.com/k_dorough27/PI/PortIsabel.html", null);
menu.addItem("miscid", "LINKS", "Other Cool Sites", "http://www.geocities.com/k_dorough27/links.html", null);

menu.addSubItem("webmasterid", "Jokes", "blond jokes, men.vs.women jokes, and more", "http://www.geocities.com/k_dorough27/jokes.html", "");
menu.addSubItem("webmasterid", "Post it", "Please tell me what you think of this website", "http://www.geocities.com/k_dorough27/postIT.html", "");
menu.addSubItem("webmasterid", "Anti-nsync", "Don't like nsync click here and have a good laugh", "http://www.geocities.com/k_dorough27/Anti-nsync.html", "");
menu.addSubItem("webmasterid", "Backstreet Boys", "Howie, Kevin, Brian, A.J., Nick and more BSB", "http://www.geocities.com/k_dorough27/BOYS/BsB.html", "");
menu.addSubItem("webmasterid", "Port Isabel", "My howe town", "http://www.geocities.com/k_dorough27/PI/PortIsabel.html", "");
menu.addSubItem("webmasterid", "Sept. 15, 2001", "Queen Isabel Causeway Collapsed", "http://www.geocities.com/k_dorough27/PI/sept15.html", "");

menu.addSubItem("newsid", "Friends", "Your name and doll you pick is here! AND if your name is not here e-mail me at k_dorough27@yahoo.com", "http://www.geocities.com/k_dorough27/friends.html", "");
menu.addSubItem("newsid", "All Styles", "Pick a doll that matches your style", "http://www.geocities.com/xsgirl4/CODE/organizedgirls.html", "");
menu.addSubItem("newsid", "Simple Pants with nice tops", "Pick a doll that matches your style", "http://www.geocities.com/xsgirl4/CODE/simple_p-j.html", "");
menu.addSubItem("newsid", "Stylish Pants with nice tops", "Pick a doll that matches your style", "http://www.geocities.com/xsgirl4/CODE/stylish_p-j.html", "");
menu.addSubItem("newsid", "Short Skirts and Short Dresses", "Pick a doll that matches your style", "http://www.geocities.com/xsgirl4/CODE/short_s-d.html", "");
menu.addSubItem("newsid", "Evening Ware", "Pick a doll that matches your style", "http://www.geocities.com/xsgirl4/CODE/evening.html", "");
menu.addSubItem("newsid", "Little Ones", "Pick a doll that matches your style", "http://www.geocities.com/xsgirl4/CODE/little_ones.html", "");
menu.addSubItem("newsid", "One the floor", "Pick a doll that matches your style", "http://www.geocities.com/xsgirl4/CODE/down.html", "");

menu.addSubItem("freedownloadid", "Lyrics", "Words for all The Backstreet Boys songs I could find", "http://www.geocities.com/k_dorough27/BOYS/HOWIED.html", "");
menu.addSubItem("freedownloadid", "Music Videos", "All BsB Music Videos I could find", "http://www.geocities.com/k_dorough27/BOYS/music/singles.html", "");
menu.addSubItem("freedownloadid", "TV appearances", "Clips of shows where BsB appeared", "http://www.geocities.com/k_dorough27/BOYS/music/TVappearances.html", "");
menu.addSubItem("freedownloadid", "Howie", "Pictures of Howie", "http://www.geocities.com/k_dorough27/BOYS/HOWIED.html", "");
menu.addSubItem("freedownloadid", "Kevin", "Pictures of Kevin", "http://www.geocities.com/k_dorough27/BOYS/Kevin.html", "");
menu.addSubItem("freedownloadid", "Kevin-n-Kristin", "Pictures of Kevin with Kristin", "http://www.geocities.com/k_dorough27/BOYS/Kevin-n-Kristin.html", "");
menu.addSubItem("freedownloadid", "Brian", "Pictures of Brian", "http://www.geocities.com/k_dorough27/BOYS/Brian.html", "");
menu.addSubItem("freedownloadid", "Brian-n-Leighanne", "Pictures of Brian with Leighanne", "http://www.geocities.com/k_dorough27/BOYS/BRIAN-n-leighanne.html", "");
menu.addSubItem("freedownloadid", "A.J.", "Pictures of A.J.", "http://www.geocities.com/k_dorough27/BOYS/AJbone.html", "");
menu.addSubItem("freedownloadid", "Nick", "Pictures of Nick", "http://www.geocities.com/k_dorough27/BOYS/Nick.html", "");
menu.addSubItem("freedownloadid", "Animated", "Pictures of The Backstreet Boys animated", "http://www.geocities.com/k_dorough27/BOYS/BSBanimated.html", "");
menu.addSubItem("freedownloadid", "The Backstreet Project", "Pictures of Nick's Comic Book 'The Backsteet Project'", "http://www.geocities.com/k_dorough27/BOYS/bsp.html", "");

menu.addSubItem("searchengineid", "Port Isabel", "Where to go", "http://www.geocities.com/k_dorough27/", "");
menu.addSubItem("searchengineid", "Sept. 15, 2001", "Queen Isabel Causeway Collapsed", "http://www.geocities.com/k_dorough27/", "");
menu.addSubItem("searchengineid", "Maps", "Maps of Port Isabel", "http://www.geocities.com/k_dorough27/", "");
menu.addSubItem("searchengineid", "Lady Tarpons", "2002 Softball Team", "http://www.geocities.com/k_dorough27/", "");
menu.addSubItem("searchengineid", "Maching Band", "2000-2001 Silver Tarpon Marching Band", "http://www.geocities.com/k_dorough27/", "");
menu.addSubItem("searchengineid", "HOSA", "Health Occupation Students of America", "http://www.geocities.com/k_dorough27/", "");
menu.addSubItem("searchengineid", "C/o 2002", "Seinor class of 2002", "http://www.geocities.com/k_dorough27/", "");

menu.addSubItem("miscid", "My HONEY", "www.max.com", "http://www.geocities.com/max44web/", "_blank");
menu.addSubItem("miscid", "Ida Invitations", "Order Custom Invitations for your get-together!", "http://www.geocities.com/idasinvitations", "_blank");
menu.addSubItem("miscid", "Styledollz", "even more dolls", "http://www.styledollz.com/", "_blank");

menu.showMenu();
}

simonf
02-22-2005, 03:19 PM
True.. that why it's a drop down menu... you would only want to have the top link as a direct url link.. for lets say... the site home page or if no other option is under the topic....

krysti
02-22-2005, 04:04 PM
ok what about having the option to have a link at all to the main bar

MAIN PAGE | Pick a Doll | Backstreet Boys | Port Isabel, TX | LINKS

and there just there as a guide not an accual link