Re: "Iconoclastic"? - stupid web tricks...

Date view Thread view Subject view Author view

From: Kragen Sitaker (kragen@pobox.com)
Date: Tue Nov 14 2000 - 14:54:13 PST


OK, here's a set of dictionary bookmarklets that works in MSIE5 and
NS4. So now the 85% of you out there using MSIE can appreciate this:

Same window:
<a href="javascript:d=document;location='http://www.dict.org/bin/Dict?Strategy=*&Database=*&Form=Dict1&Query='+escape(d.layers?d.getSelection():d.selection.createRange().text)">Lookup</a>

Three new windows:
<a href="javascript:d=document;q=escape(d.layers?d.getSelection():d.selection.createRange().text);void window.open('http://www.dict.org/bin/Dict?Strategy=*&Database=*&Form=Dict1&Query='+q);void window.open('http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va='+q);void window.open('http://www.dictionary.com/cgi-bin/dict.pl?term='+q)/*kjs*/">Lookup</a>

-- 
<kragen@pobox.com>       Kragen Sitaker     <http://www.pobox.com/~kragen/>
Perilous to all of us are the devices of an art deeper than we ourselves
possess.
                -- Gandalf the Grey [J.R.R. Tolkien, "Lord of the Rings"]


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Nov 17 2000 - 18:17:50 PST