MtDewPosterchild
Technical User
Alrighty,
Here's what I'm lookin at here... I'm building a site for the chamber of commerce of the town in which i live... Long story short they want each business member of the chamber to have thier own page, but all they want on that page is the business' name, address, and any other contact info; Sound like a waste of time and space to anyone else? I have gotten this idea approved by the person who hired me, but I can't figure out how to execute it... Here is a sample of the code for the menu I am working with... It's a Trans-Menu I found on
//==================================================================================================
var menu2 = ms.addMenu(document.getElementById("Members"));
menu2.addItem("Sports & Recreation", "");
menu2.addItem("Food & Convenience","");
menu2.addItem("Real Estate","");
menu2.addItem("Financial, Legal, & Insurance","");
menu2.addItem("Organizations","");
menu2.addItem("Manufacturing & Fabricating","");
menu2.addItem("Vehicle Sales & Service","");
menu2.addItem("Lodging","");
menu2.addItem("Merchants & Shops","");
menu2.addItem("Medical","");
menu2.addItem("Services","");
menu2.addItem("Municipal & Utilities","");
menu2.addItem("Associate Members","");
var submenu1 = menu2.addMenu(menu2.items[0]);
submenu1.addItem("Blythes Scott Co. Museum","");
submenu1.addItem("Turkey Track Bluegrass Festival Park","");
//==================================================================================================
Ok, I know you're thinking that looks fairly simple... and that part is... but what I am getting at is instead of every business that I add on here taking up an entire page just to put contact info... I was thinking maybe adding an event handler to each item on the submenu... like "onclick" functions that would open up a DHTML tooltip or even a simple alertbox that had the name of the business and the contact info of the business. I have tried it every which way i could imagine... and it always winds up make the entire script not work... If ANYONE has ANY ideas... I would be MORE than grateful. Thank you. Josh
Here's what I'm lookin at here... I'm building a site for the chamber of commerce of the town in which i live... Long story short they want each business member of the chamber to have thier own page, but all they want on that page is the business' name, address, and any other contact info; Sound like a waste of time and space to anyone else? I have gotten this idea approved by the person who hired me, but I can't figure out how to execute it... Here is a sample of the code for the menu I am working with... It's a Trans-Menu I found on
//==================================================================================================
var menu2 = ms.addMenu(document.getElementById("Members"));
menu2.addItem("Sports & Recreation", "");
menu2.addItem("Food & Convenience","");
menu2.addItem("Real Estate","");
menu2.addItem("Financial, Legal, & Insurance","");
menu2.addItem("Organizations","");
menu2.addItem("Manufacturing & Fabricating","");
menu2.addItem("Vehicle Sales & Service","");
menu2.addItem("Lodging","");
menu2.addItem("Merchants & Shops","");
menu2.addItem("Medical","");
menu2.addItem("Services","");
menu2.addItem("Municipal & Utilities","");
menu2.addItem("Associate Members","");
var submenu1 = menu2.addMenu(menu2.items[0]);
submenu1.addItem("Blythes Scott Co. Museum","");
submenu1.addItem("Turkey Track Bluegrass Festival Park","");
//==================================================================================================
Ok, I know you're thinking that looks fairly simple... and that part is... but what I am getting at is instead of every business that I add on here taking up an entire page just to put contact info... I was thinking maybe adding an event handler to each item on the submenu... like "onclick" functions that would open up a DHTML tooltip or even a simple alertbox that had the name of the business and the contact info of the business. I have tried it every which way i could imagine... and it always winds up make the entire script not work... If ANYONE has ANY ideas... I would be MORE than grateful. Thank you. Josh