You should test if it's running, like put an alert in the fillup function to see if it is being executed.
But I don't understand why you would need to fillup again. If it were me, I'd go after the href's directly. Like the first link in the first gallery would be:
Code:
cgals[0].crossmain.getElementsByTagName('a')[0]
You could change it's href by going:
Code:
cgals[0].crossmain.getElementsByTagName('a')[0].href = 'javascript:alert("I\'m changed!");';
The second one by:
Code:
cgals[0].crossmain.getElementsByTagName('a')[1].href = 'javascript:alert("Me Too!");';
Be aware though that - IF these links have onclick events that alter or override their href values, then that must be taken into account. You can change or add onclick events if need be.
If you want more help:
Please post a link to a page on the web that contains the problematic code so we can check it out.
Bookmarks