PDA

View Full Version : AnyLink Vertical Menu used with Scripts



nestorj
09-18-2006, 10:46 AM
1) Script Title: AnyLink Vertical Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/anylinkvertical.htm

3) Describe problem:
I need to find a way to run a function instead of a simple html link (see example below). Anyone has any idea how this can be done?

instead of:
menu1[1]='<a href="test.html">TEST </a>'

use something in the line of:
menu1[1]='<a href="javascript:changetwo('images/titles_23.gif', 'test.html')">TEST </a>'

jscheuer1
09-18-2006, 06:27 PM
Try:


menu1[1]='<a href="#" onclick="changetwo(\'images/titles_23.gif\', \'test.html\');return false;">TEST</a>'

However, not knowing what changetwo() does, it may cause minor problems.