I figured it out. I understand that the extra argument will be null because it doesn't exist when the link is being clicked. The solution I found was to make my own attribute "count" for the <a> element: <a href="" count=#number">. This attribute can be read by using readAttribute in the changeContent function.
After I will figure out how to make the content change automatically (to simulate the clicking on 1 2 3 4 5 6) I will post here the finished class. Maybe it can be used by JS beginners like me to do something similar or maybe someone will use in this form. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---