---
F R E N D Z  of martian
---

That code doesn't work
a) if the page you're on doesn't have frames
b) if no selection has been made.

I haven't actually verified that it works on pages with frames and text
selected either ;-)

I tried to fix it at http://marsbard.com/neil/ but I think it's still broken

martian

----- Original Message -----
From: "Neil Elkins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 30, 2000 4:50 PM
Subject: useful thing


> ---
> F R E N D Z  of martian
> ---
>
> I just made this link button link to search the deja.com usenet archive...
> If anyone wants to bung it on a web site, that'll be great, 'cos then
you'll
> all be able to drag and drop it onto your IE links bar...
>
>
javascript:q=(document.frames.length?'':document.selection.createRange().tex
>
t);for(i=0;i<document.frames.length;i++){q=document.frames[i].document.selec
> tion.createRange().text;if(q!='')break;}if(q=='')void(q=prompt('Enter text
> to search
>
dejanews.',''));if(q)location.href='http://www.deja.com/dnquery.xp?ST=MS&svc
> class=dnserver&DBS=2&QRY='+escape(q)
>
>
> --
> Sent to you via the frendz list at marsbard.com
>
> The archive is at http://www.mail-archive.com/frendz@marsbard.com/


--
Sent to you via the frendz list at marsbard.com

The archive is at http://www.mail-archive.com/frendz@marsbard.com/

Reply via email to