Justinio
03-08-2006, 06:40 AM
Hey all,
i need to know something that i can't fix myself so i hope one of you can help me out.
I made this show pop-up menu in dreamweaver (i don't have fireworks):
www.hollandvisual.com/lokhorstmenu/menu.html
www.hollandvisual.com/lokhorstmenu/mm_menu.js for the js file
as you can see i managed to retain the button's rollover state while rolling over a pop-up menu, but that's not all i want.
for the menu items im gonna use a special font and i want to use a background so the items need to have a image. As you can see in menu.html the menu items are still text, but in this version i was able to give the items a bg image and a roll over state.
www.hollandvisual.com/lokhorstmenu/menu2.html
js file is the same
but now all the items will have the same image and i need each item to have it's own images, like:
Item 1 has image1.jpg and image1-over.jpg
Item 2 has image2.jpg and image2-over.jpg
a roll over would be great as menu item, but in this case if someone knows how to change the text label into a image it would be great too.
i think this is kinda the way to do it
mm_menu_0306142624_0.addMenuItem("image1.jpg","location='item1.html'");
mm_menu_0306142624_0.addMenuItem("image2.jpg","location='item2.html'");
mm_menu_0306142624_0.hideOnMouseOut=true;
mm_menu_0306142624_0.bgColor='#555555';
mm_menu_0306142624_0.menuBorder=0;
mm_menu_0306142624_0.menuLiteBgColor='#FFFFFF';
mm_menu_0306142624_0.menuBorderBgColor='#777777';
mm_menu_0306142624_0.restoreParam='';
but then u will have to tweak the mm_menu.js and this function i think, the only problem is that i dont know what to change it into
}
function addMenuItem(label, action) {
this.items[this.items.length] = label;
this.actions[this.actions.length] = action;
}
i need to know something that i can't fix myself so i hope one of you can help me out.
I made this show pop-up menu in dreamweaver (i don't have fireworks):
www.hollandvisual.com/lokhorstmenu/menu.html
www.hollandvisual.com/lokhorstmenu/mm_menu.js for the js file
as you can see i managed to retain the button's rollover state while rolling over a pop-up menu, but that's not all i want.
for the menu items im gonna use a special font and i want to use a background so the items need to have a image. As you can see in menu.html the menu items are still text, but in this version i was able to give the items a bg image and a roll over state.
www.hollandvisual.com/lokhorstmenu/menu2.html
js file is the same
but now all the items will have the same image and i need each item to have it's own images, like:
Item 1 has image1.jpg and image1-over.jpg
Item 2 has image2.jpg and image2-over.jpg
a roll over would be great as menu item, but in this case if someone knows how to change the text label into a image it would be great too.
i think this is kinda the way to do it
mm_menu_0306142624_0.addMenuItem("image1.jpg","location='item1.html'");
mm_menu_0306142624_0.addMenuItem("image2.jpg","location='item2.html'");
mm_menu_0306142624_0.hideOnMouseOut=true;
mm_menu_0306142624_0.bgColor='#555555';
mm_menu_0306142624_0.menuBorder=0;
mm_menu_0306142624_0.menuLiteBgColor='#FFFFFF';
mm_menu_0306142624_0.menuBorderBgColor='#777777';
mm_menu_0306142624_0.restoreParam='';
but then u will have to tweak the mm_menu.js and this function i think, the only problem is that i dont know what to change it into
}
function addMenuItem(label, action) {
this.items[this.items.length] = label;
this.actions[this.actions.length] = action;
}