Forums Archive Index > SmartMenus v4.x General > Dynamic positioning
Date: 14 Jul 2003 5:01 am
i need to be able to display a menu that appears when the user rolls the mouse over a link that appears somewhere on the webpage. specifically, if you have a page with car models and you rollover each car model link then a menu would appear to the right of the link that presents a number of options like details, manufacturer and buy. the car models are obtained from a database so there may be lots of different ones. when the user selects one of the menu options against the currently open menu it will go to the correct page based on what model that was rolled over.
ideally, i would have a single menu defined for the entire page but would overwrite the position and link actions just before displaying the menu each time.
i have already started customising smartmenus to see if it will work for this scenario but cant see an easy way to do this.
any ideas greatly appreciated.
Date: 14 Jul 2003 8:54 pm
Using one menu and changing the menu link actions is not possible dynamically. At least, as I am thinking, not in all browsers. So it's better (if not the only possible) option to create menus for all cars.
For the positioning.... Aren't you pleased with the mouse event positioning?
If not, I can create custom function for you, which can find the position of the current car link and position the current menu relatively to the link's position. Contact me by e-mail if you are interested.
Cheers!