|
|||||||
Bookmarklets |
|||||||
Bookmarklets are little snippets of code that you can hide in your browser's list of links. Instead of whisking you off to some far-off url they can perform more useful tasks such as looking up a word in an online dictionary or checking the availability of a book in your local library. Here are some such snippets that we've come up with. To use them drag the link into your "Links" bar if you're using Internet Explorer or onto your Personal Toolbar if you're using Netscape. If you're using something else, drag it whereever you would normally drag a url you want to save. | |||||||
Thomas Bill Lookup This bookmarklet looks up a selected (highlighted) bill on the Thomas server at the congressional website. It is currently set up for the 107th session of congress for 2002. Note that the session is determined by the current date and the algorithm will have to be adjusted if you want a different session. The bill number should be of the form HR nnnn or S nnnn with or without spaces or periods. The javascript code uses regular expressions to parse the highlighted text, so the bill number simply needs to be somewhere in the highlighted section. Tested so far on Windows 2000 using IE 5.0 and Netscape 4.6. Sample text.
|
|||||||
Find on the All Music Guide This will look up an artist, for example the Cowboy Junkies or Cecil Taylor, on the All Music Guide. |
|||||||
Find in Encyclopedia Brittanica This will look up the highlighted term on EncyclopediaBrittanica.com. |
|||||||
Some guides for writing bookmarklets | |||||||
The code:
|