Updated: 16/02/2005; 10:21:36.
Outwardly Normal 2
Julius Welby's (currently broken) displacement activity web site
        

04 September 2002

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    comment()

© Copyright 2005 Julius Welby.
 
September 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Aug   Oct

 
Photography links
 
Weblogs
 
Design and Tech
 
Culture
 
Local etc.

Click here to visit the Radio UserLand website.

Subscribe to "Outwardly Normal 2" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.