...

View Full Version : Same link - same function - different arguments



Jerome
04-04-2003, 02:43 PM
Hi,

I have a link with a function which the first time You click needs to activate the function and use argument - X - , but the second time You click it needs to activate the same function and using argument - Y -, and after again with - X - and so on, like

1. time: onClick="function1('X');"

2. time: onClick="function1('Y');"

3. time: onClick="function1('X');"

And so on, in other words toggle between the arguments.

Has somebody experience with this?

Thanks for Your effort,
Jerome

Graeme Hackston
04-04-2003, 02:49 PM
Can we see the function

F.N.G.
04-04-2003, 03:02 PM
-

The Toggle Button Example at the bottom of this (http://home.cogeco.ca/~ve3ll/jstutor6.htm) page might give you some ideas... (u can add events to each toggle mode).

-

Jerome
04-04-2003, 03:58 PM
F.N.G,

Good example, thanks!

Jerome



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum