I thought of this HTML this morning:
<A onmouseover="this.href='http://www.dictionary.com/search?q=' + this.innerHTML;" onclick="this.href='http://www.dictionary.com/search?q=' + this.innerHTML;" href=""> persimmon</A>
What does it do?
It's a link which is aware of its own text content and will look up the word it is wrapped around on dictionary.com. This means that the same tag content can be wrapped around any (non-formatted) word and the link will work. (The mouseover bit means that the URL will display in the browser's status bar as normal).
Like this: persimmon
Or this: feep
It's not actually that useful or even advisable to use in the real world - JavaScript linking is generally a bad thing as it breaks spidering and leaves old browsers up the creek.
It requires a browser able to use the innerHTML attribute, so is works in IE5+ and Mozilla - I'm not sure about any Netscape versions. I found it amusing. If you are a geek, you might enjoy it too.
10:20:49 PM
|