Cool PHP Tips and Tricks: suggestion

From: Date: Tue, 03 Oct 2000 15:34:48 +0000
Subject: Cool PHP Tips and Tricks: suggestion
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-2362@lists.php.net to get a copy of this message
This is pretty much a rip off of the Google.com browser buttons, but its a pretty nice feature which i think alot of ppl would find handy. I have tested it myself and it works great, being a shonky php coder it definately gets used often. All you do is under Netscape 4+ or IE4+, create a new bookmark or "favourite", name it whatever you like, and set the following text to be the link. When clicked, it will then either search for the currently highlighted text on the page, or pop up a window for you to enter text to search for in the PHP manual. (at present the Australian mirror) Note: the link should all be on one line. javascript:q=document.getSelection();for(i=0;i<frames.length;i++){q=frames[i].document.getSelection();if(q)break;}if(!q)void(q=prompt('Enter text to locate in the PHP manual. Or you can highlight text on the current page before clicking PHP Search.',''));if(q)location.href='http://au.php.net:81/manual-lookup.php?function='+escape(q) Hope you can add this one to the site. Thanks alot Matthew O'Donohue phpwannabe

« previous php.mirrors (#2362) next »