Firefox PHP Quick Reference Tip bookmarklet
| From: | Bill Donnelly | Date: | Mon, 22 Aug 2005 04:59:38 +0000 |
| Subject: | Firefox PHP Quick Reference Tip bookmarklet | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-29051@lists.php.net to get a copy of this message | ||
I have a PHP Quick Reference Tip bookmarklet for publication on
the Quick Reference Tips page at http://www.php.net/tips.php
for the *Firefox* browser.
Here is the advanced bookmarklet code.
(of course, all line breaks need to be removed)
javascript:/* PHP Help */
(function(){oKw=window.getSelection().toString();
if(oKw==''){oKw=prompt('PHP Reference:','')}
if(oKw!=null){
oKw=oKw.replace(/^\s*/,'').replace(/\s*$/,'');
if(oKw!=''){
window.ww_php=open('http://php.net/manual-lookup.php?lang=en&pattern='+
encodeURIComponent(oKw),'_phpnet');
setTimeout('window.ww_php.focus();delete window.ww_php',100)}}})()
--
Sometimes bad things happen to good people.
When that happens, those good people should
seek out and find some bad people.
And then do something bad to them.
Just to even things out.
It's only fair, after all.