Suggestion for "Tips and Tricks"
| From: | Mats Lson | Date: | Wed, 13 Dec 2000 16:05:41 +0000 |
| Subject: | Suggestion for "Tips and Tricks" | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-3096@lists.php.net to get a copy of this message | ||
Hi!
A suggestion for the "Tips and Tricks Section" at php.net
Thanks for a wonderful scripting language
/Mats Lson
PS. There might be some misspellings in the text, since I normaly write in swedish. DS.
----
Adding the Quick Reference to (almost?) any browser using JavaScript
This solution is suitable if you can't get the IE5 Tools package, for example if you use IE on Macintosh, and when you use an older version of Netscape.
You should be able to use this solution with most Javascript-compatible browsers.
Internet Explorer
1. Choose "Organize your favorites" in the "Favourites" menu.
2. Create a new favourite
3. Paste the following code in the address-field:
javascript:manval=prompt('Quick%20PHP%20Function%20Reference','phpinfo');if(manval){window.open('http://www.php.net/manual-lookup.php?function='+manval,'_blank','toolbar=1,location=1,status=1,menubar=1,favorites=1');}
This will result in a new window with the manual page requested.
javascript:manval=prompt('Quick%20PHP%20Function%20Reference','phpinfo');if(manval){window.location='http://www.php.net/manual-lookup.php?function='+manval;}
This will result in the manual page within the current window.
4. Finished! Now you can place the favourite in, for example, your favourites toolbar.
Netscape Navigator
1. Choose "Edit Bookmarks" from the "Bookmarks" menu.
2. Create a new bookmark (File -> New Bookmark).
3. Get info for the bookmark that you just created (Edit -> Get info).
4. Name the bookmark and place the following code in the location field:
javascript:manval=prompt('Quick%20PHP%20Function%20Reference','phpinfo');if(manval){window.open('http://www.php.net/manual-lookup.php?function='+manval,'_blank','toolbar=1,location=1,status=1,menubar=1,favorites=1');}
This will result in a new window with the manual page requested.
javascript:manval=prompt('Quick%20PHP%20Function%20Reference','phpinfo');if(manval){window.location='http://www.php.net/manual-lookup.php?function='+manval;}
This will result in the manual page within the current window.
5. Finished! Place the bookmark in, for example, you personal toolbar.
----
--
--------------------------------------------------
Mats Lson Sundbergs Mediaverkstad
Progressive programming http://sundbergs.net/