Titles

From MegaZine3

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

This plugin allows to use overlays on elements. An overlay can be a simple color overlay, or a border overlay (e.g. border glow). An overlay can have default alpha value, and a mouse over value.

Contents

[edit] 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="").

[edit] Attributes

[edit] 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>

[edit] 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
Personal tools