From MegaZine3
Revision as of 23:51, 5 December 2009 by Fnuecke (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The nav element allows a shortcut to creating navigation lists. For more flexibility, consider using images or areas.




The text alignment of the lnk elements, i.e. the actual list entries.


The normal text color of the list elements.


The overall height of the list. If given, elements will be evenly distributed over the total height. Otherwise the list will be just as high as necessary.


The text color of the list elements when hovered by the user's cursor.


The overall width of the list. If not set, the list will be just as wide as necessary. Can be used to enforce line-breaks in list elements.



These nodes are used to define entries of the navigation list. They may only contain the title of the link, optionally in the form of a <![CDATA[]]> node, containing HTML formatted text. E.g. to show a bold list entry with the text "Some text" use the following:

<lnk URL="someURL"><![CDATA[<b>Some text</b>]]></lnk>


If the element is linked externally (has the URL attribute set and the link is not to an internal anchor) this determines where the link is opened. Possible values:

Other values will be interpreted as window names. This works the same way as it does in HTML.


URL to navigate to if clicked. Can be an absolute or relative path. Relative paths are always relative to the megazine.swf file. Can also be a reference to an anchor of a chapter or page, written as anchor:anchorname, e.g.

<lnk url="anchor:myAnchor" .../>

If a number is given after the anchor: prefix, and no anchor with that name exists, the book navigates to the page with that number. If left blank or not specified, the list entry will not be highlighted on mouseover.


<nav align="center" position="center middle" color="#423e21" hover="#5e5934" >
    <lnk url="" target="_self"><![CDATA[<font face="serif" size="24">External link</font>]]></lnk>
    <lnk url="anchor:prologue"><![CDATA[<font face="serif" size="24">Prologue</font>]]></lnk>
    <lnk url="anchor:chapter1"><![CDATA[<font face="serif" size="24">Chapter I - Features</font>]]></lnk>
    <lnk url="anchor:chapter2"><![CDATA[<font face="serif" size="24">Chapter II - Elements And this is Some More text</font>]]></lnk>
    <lnk url="anchor:references"><![CDATA[<font face="serif" size="24">References</font>]]></lnk>
    <!-- Default format for this entry -->
    <lnk url="anchor:epilogue">Epilogue</lnk>
    <!-- Won't show the external link in german -->
    <lnk lang="de" url="anchor:download"><![CDATA[<font face="serif" size="24">Download</font>]]></lnk>
    <lnk lang="de" url="anchor:prologue"><![CDATA[<font face="serif" size="24">Prolog</font>]]></lnk>
    <lnk lang="de" url="anchor:chapter1"><![CDATA[<font face="serif" size="24">Kapitel I - Features</font>]]></lnk>
    <lnk lang="de" url="anchor:chapter2"><![CDATA[<font face="serif" size="24">Kapitel II - Elemente</font>]]></lnk>
    <!-- Won't show the 'references' link in german -->
    <lnk lang="de" url="anchor:epilogue">Epilog</lnk>
MegaZine3 Core-related articles
Book elements Book · Chapter · Page · Spreadpage
Page elements Area · GIF · Image · Navigation · Sound · Text · Video
Personal tools