Re: Display popup then redirect
2005/11/18 13:48
Viewed 5052 times
Replies: 1/1

Well, both problems can be solved by using a JS action rather than combining the two.  Indeed, we don't support the "onclick" argument on the links inside a menu item—that's because the whole link gets replaced with some complicated DOM elements that make up the menu item.

Anyway, here's a possible solution to your problem:

<li>
<a href="javascript:goToSlowAddress('Mypage.asp')">Some Option</a>
</li>

and include this script somewhere in your JavaScript files:

function goToSlowAddress(url) {
// here you can popup whatever you want:
MM_popupMsg('test text');

// and now redirect:
window.location = url;
}

Hope this helps.

does the function exist to display menu manually?
2005/12/23 14:14
Viewed 5881 times
Replies: 0/0

Hi, your forum is very tricky ;). I failed to find an option to create new post so I'm writing reply to this message. I need a function to display menus at any time. I've tried to find it in hmenu.js but it seems that have no such function. Please show me the way to do it. Thanks in advance.

last
Google