Is it possible to call javaScript function from menu and how. I tried like:
<div><a href='#' onclick = 'doSomething()' > Do something</a></div>
but it doecs not work. All the menu gone.
Thanks,
Answer:
Yes, it's possible.
Use our function JSF(url) and target='callJSF'
http://f-source.com/flash-menus/Vista_navigation_bar/#javascript
For example:
<div><a href='firstURL' target='callJSF'>Button1</a></div>
function JSF(url){
if(url=="firstURL") { doSomething() }
if(url=="secondURL")alert("Second button is pressed");
}
The function can be found in the DIV id="f-source-menu".
Regards
Dmitry
f-source.com
Jun 2, 2008
Call javaScript function from menu
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment