Site navigation bar in Mozilla and Opera
This isn’t exactly a script, nor is it quite CSS. I got a tip from BaronCarlos that there’s an XUL feature called the ‘Site Navigation Bar’ that you can customize in Mozilla and Opera 7.
If you embed four lines of code inside the <head> of your document, the browser will produce button for ‘first’, ‘previous’, ‘next’, and ‘last.’ I can see this as having some potential for sites which have mostly-sequential content, such as weblogs and journals.
From what little research I’ve done, it looks like the only code you need are these four lines:
<link rel=”previous” href=”[previous url here]“/>
<link rel=”next” href=”[next url here]“/>
<link rel=”first” href=”[first url here]“/>
<link rel=”last” href=”[last url here]“/>
To see the toolbar in action, go to View | Show/Hide |Site Navigation Bar. This is off by default, so you won’t see it unless you select it.
I’m sure there are vastly more interesting uses for this sort of thing, but one has to start somewhere.
December 6th, 2002 at 11:04 pm
Yeah, the site navigation bar is awesome. Following Jason’s lead, and Kristine’s I created a new template module for MT with a bunch of info, archive links, translations, etc. Having this hefty template module in each page slowed rebuilds down, so now I have the same info in a php include from an index template I created for it, and it is quicker, and I get all the groovy extra links and archive info.
December 15th, 2002 at 7:42 pm
Thanks to both scriptygoddess and kadyellebee, my blog now utilizes the spiffy Mozilla Navigation Bar (warning: popup). Not only does
February 5th, 2003 at 5:50 pm
what’s the easiest way to use the site navigation bar to navigate trhu one page.
like, when you click (or scroll to) an anchor, the “next” in the navigation bar becames #2, and when you’r readind #2, the link at the “next” changes to #3 and so on?
Gabriel
April 22nd, 2003 at 7:11 am
You can find out more about the different types of links you can have from you page at http://www.w3.org/TR/REC-html40/types.html.
June 10th, 2003 at 1:35 pm
I am a newbie to PHP scripting, I would like to know how to covert My index.html file to index.php and us it as a template…? If someone could assist me in this I would be very appreciative.
PS… Thanks in Advance!!
July 24th, 2003 at 6:39 pm
This browser feature is awesome; thanks very much for the details.
Regarding changing what ‘next’ and ‘prev’ link to, I don’t think there is a good way to navigate from anchor tag to anchor tag. JS could do it, but I doubt you can associate JS with a LINK tag.
May 5th, 2004 at 11:42 pm
Apparently, there are more than just those four. Here are the ones in Opera7’s bar, in the order in which they appear:
start, index, contents, search, glossary, help, first, prev, next, last, up, copyright, and author.
(Note: start is displayed as “Home” in the bar.)
You can also add a “title=” to the but Opera7 doesn’t seem to do anything with them. Not sure if Mozilla does…
Later,
Amos