X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,5afcb992ddf2c6e5 X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2002-07-13 23:37:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!ac82a06c.ipt.aol.COM!not-for-mail From: "dynoGuru" Newsgroups: alt.ascii-art Subject: Re: [PIC][255] I wonder if I ever see you again... T-8 days Date: Sun, 14 Jul 2002 02:36:59 -0400 Lines: 57 Message-ID: References: <29auiu09rbq7tbsm7ldoskr11r89vm1v0i@4ax.com> <3d3095f6$0$46313$edfadb0f@dspool01.news.tele.dk> NNTP-Posting-Host: ac82a06c.ipt.aol.com (172.130.160.108) X-Trace: fu-berlin.de 1026628643 25270699 172.130.160.108 (16 [22765]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com alt.ascii-art:18216 "CeeJay" wrote in message news:3d3095f6$0$46313$edfadb0f@dspool01.news.tele.dk... > > Here : > javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('No > text selected on page. > Keywords...?',''))};if(Q)location.href='http://www.io.com/cgi-bin/dict?'+esc > ape(Q) > I think this works better, javascript:function trim(str) {str = this != window? this : str;return str.replace(/^\s+/g, '').replace(/\s+$/g, '');}Q=document.selection.createRange().text;if(!Q){void(Q=prompt('No text selected on page. Keywords...?',''))};if(Q)location.href='http://www.io.com/cgi-bin/dict?'+esc ape(trim(Q)) Just adds a fuction trim(). This is helpful is you are in the habit of double clicking a word to select it. For example when you use MSIE, double clicking selects the space after the word. This would fail in some servers like www.io.com. So the selected word needs to be trimmed. -dyno I guess I sure do have to post an obascii this time. trimmer: (#\ /#) \#\ /#/ \v/ /^\ // \\ // \\ (/ \) [:dg:] > Unwrap the link and make a bookmark with this as the URL > It will work with IE ( and Netscape 4 and earlier I think) > It doesn't work with Mozilla for some reason. > I think it doesn't interpret Javascrip: URLs > > > - and their looking like she was holding her > > belly... :) > > And their should be they're .. it's abbriviation of "they are" - Their is a > different word that is pronounced the same way. > >