How does URL replacement on the google SERPs "sponsored links" work?
Some of the results have a function rwt attached to the onmousedown event, but the sponsored links don't have any event handlers as far as I can make out. How does it achieve the behaviour of replacing the href, and still send you to the long /aclk?sa= link?
Upon saving to a local file, the javascript magically breaks foiling my own attempts to pick it apart. Hopefully someone could give me a starting point of attack.
Just a few other observations. There is a regular expression chopping the q= part off the URL, but I can't for the life of me see how they "reset" the URL so it can be tracked. Also the replacement only worked properly under firefox. IE7 showed a blank status bar. Safari and opera showed the ugly URL.
--update-- Thanks for having a go Carl but I think you were closer the first time. I guess I didn't explain it at all well. I'm trying to figure out how the javascript on the SERPs page works. Not the server side logic.