Titles

From MegaZine3
Jump to: navigation, search
Plugin: Titles
Titles.jpg
Name Titles
Files
  • titles.swf
Related plugins

This plugin allows adding a tool tip to an element like an image. When hovering over the element with the mouse, the text defined with 'title' will be presented.

Plugin interactions

If the links plugin is loaded, this plugin will automatically create a title for linked elements, showing the URL to which the link leads. This can be suppressed by assigning the linked element an empty title attribute (title="").

Attributes

Elements

title

  • Type: String
  • Default: N/A

The text to display in the tool tip when hovering the element. This text may be HTML formatted. To use HTML formatting, one must define the title as a child node to the element for which to define it, and wrap the text in a CDATA node, i.e.

<element>
    <title lang="en"><![CDATA[My <b>HTML</b> <i>Formatted</i> text.]]></title>
</element>

Examples

<book plugins="titles">
    <chapter>
        <page>
            <img src="test.jpg" title="A simple title."/>
        </page>
    </chapter>
</book>
<book plugins="titles">
    <chapter>
        <page>
            <img src="test.jpg">
                <title lang="en"><![CDATA[My <b>HTML</b> <i>Formatted</i> text.]]></title>
                <title lang="de"><![CDATA[Mein <b>HTML</b> <i>formatierter</i> Text.]]></title>
            </img>
        </page>
    </chapter>
</book>
MegaZine3 Plugin-related articles
Plugins Anchors · Background Sounds · Batchpages · Bookmarks · Console · ElementIDs · Gallery · Google Analytics · Help · JavaScript · Keyboard Navigation · Links · NavigationBar · Options · Overlays · Password · PDFLinks · Print · PrintPDF · SWFAddress· Search · Sidebar · Slideshow · Titles
Plugin Articles Writing a plugin · Writing a plugin II · Plugin development