Ok, Javascript sucks, but this use is kinda neat…. I have a bookmark created in Mozilla (but this code should work in IE) whose document location is set to:
javascript:q = document.getSelection(); if(!q) void(q=prompt('Dictionary:','')); if(q) location.href = 'http://www.m-w.com/cgi-bin/dictionary?' + escape(q)
If I highlight a word on whatever page I am looking at and then click on this bookmark, it looks that word up in the M-W Dictionary… If I don’t have any text selected, it instead prompts me for the word to look up.. I also have similar things to search IMDB…
I have had this for awhile and thought some of y’all would be interested…
word, that’s awesome!
I like it too. :)
Neat. I modified it a bit for dictionary.com and thesaurus.com and wrote a couple of IMDB.
Yeah, I figured people would be able to mangle it pretty easily… I mean, it isn’t that complicated. :)
very slick.
but couldja change that to have some extra spaces in it so it doesn’t muck up my friends page?
done.
yay
werd.
Re: yay
Well, I am glad I am apparently the man today… :)
works wonderfully in Mozilla but IE says that the protocol javascript does not have a registered applications … hmmm… any idea? Because I really like it I have to say.
Oliver aka BizKiffer
works wonderfully in Mozilla but IE says that the protocol javascript does not have a registered applications … hmmm… any idea? Because I really like it I have to say.
I think you are SOL on this one… I never, ever use IE, so I have no idea what it would take to make it work… My solution? Ditch that crappy browser. :)
yeah yeah. I just did. I finally downloaded Opera 6 (over this crappy ISDN line) and Opera 6 has this feature in the right mouse button menu all by itself ;)
I don’t like Opera, but whatever floats your boat… I mean, it’s better than IE.. :)
that’s really fucking awesome.