Define it as a function.
Loop through the entire document for instances of a link.
And modify the onClick event to run this function every time.
well sounds reasonable but a little beyond my skills...
maybe some insights on where <what file> to do this?
or how it might be easier to accomplish with mootools?
thanks for any hep here!
In the theme's header.php file, in the head section, before the wp_head() call, add something like this:
Simple as that. If you want to only add it to some links, then you can change the 'a' to be a bit more specific.. Like, say, all the links inside the div with a class of "post" would be '.post a' instead.
jQuery. It's extremely powerful.
This topic has been closed to new replies.