Template:Show on hover

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
Hello.
Goodbye.
[edit] [purge] Template-info.svg Template documentation

Usage

PM1.jpg
Manningface.jpg

Similar to {{PopupImage}}, except more barebones and not inline by default. Used to show a hidden object when cursor is hovering over an initially shown object.

{{Show on hover
|show = I'm shown initially.
|hide = I'm shown when the cursor hovers over the other text.
}}

Also works with pictures. Pretty flexible. The following code produces the image hover you see.

{{Show on hover
|show = [[File:PM1.jpg|right|110px]]
|hide = [[File:Manningface.jpg|right|110px]]
}}

You can also customize the template with the style parameter

{{Show on hover
|show = foo
|hide = bar
|style = display:inline; color:red; font-size:100em;
}}

See also