filsa.net: Frontier / Scripts / Navigation Macros / Web Monkey Pages
This is part of Phil's Script Archive

UPDATED: Ready for Frontier 5!

Web Monkey Pages

Navigation a-la those crazy folks at HotWired


This fat web page contains the wmPages script object.

Use the 'Get Page Data' command from the Scripts menu to copy wmPages into your object database.

Also available: info about fat pages and the Terms under which you can use this script.

Used to be I'd go to hotwired.com whenever I wanted to grind my browser to a halt waiting for graphics to download. But since Hotwired 4.0, the site has improved remarkably and pages that used to be littered with graphics now only have one or two. (I think we can thank Jeff Veen for this.)

Web Monkey's Tutorial Navigation

The Webmonkey site has really improved, with really great articles and tutorials. I admire their navigation for tutorials-- at the bottom of every page there's a list of all the pages in the tutorial, so you can jump around easily (Just like Jakob Nielson says).

Anyway, when it came time to put a tutorial toolkit together for the "Script Meridian" website, I wanted to have the same kind of navigation.

For a sample, take a look at the bottom of this tutorial page.

How to use the wmPages macro

wmPages creates a list of links in the current table that begin with a user-defined prefix.

You define that prefix in the required parameter called objprefix.

For example, the macro on the Script Meridian ODB tutorial looks like this:

{wmPages ("theRoot")}

The macro indexes all the pages in that table that begin with "theRoot".

You can see the results on the tutorial page.

Parameters

wmPages (objprefix, lineStart="Page ", lineNumbers=true, prefixEnd=":", linkStart="", linkEnd="", lineEnd="<br>r" )

The rest of the parameters give you a very fine level of control over the output. Experiment with these to see what they do. Have fun!

Notes

Thu, Apr 23, 1998 at 6:05:36 PM: The inevitable, stupid, post-release bug fix.

Wed, Apr 22, 1998 at 6:00:38 AM: First release

View the Source: user.html.macros.wmPages


© copyright 1997-98 by Philip Suh. Comments are appreciated.
This page last updated on 4/23/98; 6:05:59 PM.
<http://www.filsa.net/frontier/scripts/NavigationMacros/wmPages.html>
filsa.net: Frontier / Scripts / Navigation Macros / Web Monkey Pages