AJAX multi actions?

How can I do something like this:
<a id=a7 style=“cursor: pointer;”
onClick = "new Effect.Fade (‘li’);
Element.show(‘a1’,‘a2’,‘a3’,‘a5’,‘a6’);
onClick = “new Effect.Fade (‘rp’);
Element.show(‘a1’,‘a2’,‘a3’,‘a5’,‘a6’);”> Hide Images
Whenever I do this it doesn’t work,
Thanks in advance

Mohammad Surname? wrote:

How can I do something like this:
<a id=a7 style=“cursor: pointer;”
onClick = "new Effect.Fade (‘li’);
Element.show(‘a1’,‘a2’,‘a3’,‘a5’,‘a6’);
onClick = “new Effect.Fade (‘rp’);
Element.show(‘a1’,‘a2’,‘a3’,‘a5’,‘a6’);”> Hide Images
Whenever I do this it doesn’t work,
What should it be doing? What are ‘li’ and ‘rp’, and why do you have
two onClicks defined on a single element?




Veiw Images |
<a id=a7 style=“cursor: pointer;”
new Effect.Fade (‘li’);
Element.show(‘a1’,‘a2’,‘a3’,‘a5’,‘a6’);
onClick = “new Effect.Fade (‘rp’);
Element.show(‘a1’,‘a2’,‘a3’,‘a5’,‘a6’);”> Hide Images

Sorry about that,
If you hit veiw images it only show login.gif if you hit hide it hides
rails.png so is there a way I could make it hide all of the images on
one click? Without having to make a javascript funticion?

you can either use rails 1.1 & a rjs template (search in the list for
some
help about that), or write your javascript function (onclick=“f()”)