GeoHazardWatch

Page Actions


Using MarqueePlugin

The MarqueePlugin displays a horizontally scrolling text banner on any page.

Description

Use this plugin to create a moving text strip — useful for announcements,
alerts, or highlights. The banner pauses automatically when you hover over
it with the mouse. See Plugins for a complete list of available plugins.

Syntax

[{MarqueePlugin text='Your message here'}] renders as:

Your message hereYour message here

Parameters

ParameterDefaultDescription
text*(required unless fetch is used)*The message to display.
fetch*(none)*Call a data manager to get the text dynamically. See Live Data from Managers below.
speedmediumScroll speed: slow, medium, fast, or a number of seconds.
directionleftDirection of movement: left or right.
behaviorscrollscroll (continuous loop), slide (enters and stops), alternate (bounces).
loopinfiniteNumber of passes before stopping (applies to slide / alternate).
bgcolor*(none)*Background colour of the banner strip (any CSS colour).
color*(none)*Text colour (any CSS colour).
fontsize*(inherit)*Font size of the banner text (any CSS length: 1.5em, 24px, 2rem).
separatorCharacters shown between repetitions in scroll mode.
cssclass*(none)*Extra CSS class added to the banner for custom styling.

Examples

Simple Announcement

[{MarqueePlugin text='Community meeting Tuesday 7 PM in the clubhouse'}] renders as:

Community meeting Tuesday 7 PM in the clubhouseCommunity meeting Tuesday 7 PM in the clubhouse

Coloured Alert Banner

[{MarqueePlugin text='Maintenance window tonight 02:00–04:00 UTC' speed='fast' bgcolor='#f8d7da' color='#721c24'}] renders as:

Maintenance window tonight 02:00–04:00 UTCMaintenance window tonight 02:00–04:00 UTC

Slow Information Strip

[{MarqueePlugin text='Welcome — enjoy your stay!' speed='slow' bgcolor='#d1ecf1' color='#0c5460'}] renders as:

Welcome — enjoy your stay!Welcome — enjoy your stay!

Slide In Once

[{MarqueePlugin text='New feature available — click here to learn more' behavior='slide' loop='1'}] renders as:

New feature available — click here to learn more

Bouncing Text

[{MarqueePlugin text='Special event this weekend!' behavior='alternate'}] renders as:

Special event this weekend!

Custom Separator Between Repetitions

[{MarqueePlugin text='Free Wi-Fi in the lobby' separator=' ❖ '}] renders as:

Free Wi-Fi in the lobbyFree Wi-Fi in the lobby

Large Headline Banner

Use fontsize= to make the text stand out. Any CSS length unit works —
em, rem, px, vh, etc.

[{MarqueePlugin text='Grand Opening — Saturday 10 AM' fontsize='2em' bgcolor='#0d6efd' color='white' speed='slow'}] renders as:

Grand Opening — Saturday 10 AMGrand Opening — Saturday 10 AM

Small Ticker Strip

[{MarqueePlugin text='Latest scores: Home 3 — Away 1 • Home 0 — Away 2' fontsize='0.85em' speed='fast'}] renders as:

Latest scores: Home 3 — Away 1 • Home 0 — Away 2Latest scores: Home 3 — Away 1 • Home 0 — Away 2

Live Data from Managers

Instead of typing static text, use fetch= to pull live data from any data
manager that supports it. The banner text updates automatically every time
the page renders.

Syntax: fetch='ManagerName.methodName(option=value,...)'

[{MarqueePlugin fetch='HansDataManager.toMarqueeText()'}] renders as:

VOLCANO ALERTS: Great Sitkin — WATCH (ORANGE) • Kupreanof — ADVISORY (YELLOW) • Shishaldin — ADVISORY (YELLOW) • Kilauea — ADVISORY (YELLOW)VOLCANO ALERTS: Great Sitkin — WATCH (ORANGE) • Kupreanof — ADVISORY (YELLOW) • Shishaldin — ADVISORY (YELLOW) • Kilauea — ADVISORY (YELLOW)

Options inside fetch=

Options are passed as key=value pairs separated by commas inside the
parentheses. Each manager defines which options it accepts.

Common options (supported by all managers that implement toMarqueeText):

OptionDescription
limitMaximum number of items to include (e.g. limit=3)
sortSort order shorthand, e.g. sort=date-desc or sort=name-asc
sinceISO date — only items at or after this date (e.g. since=2026-01-01)
beforeISO date — only items before this date

HansDataManager-specific options:

OptionDescription
alertLevelFilter by level: ADVISORY, WATCH, or WARNING
colorCodeFilter by aviation colour: YELLOW, ORANGE, or RED
observatoryFilter by observatory code: avo, hvo, cvo, etc.

Examples

[{MarqueePlugin fetch='HansDataManager.toMarqueeText(limit=3)'}] renders as:

VOLCANO ALERTS: Great Sitkin — WATCH (ORANGE) • Kupreanof — ADVISORY (YELLOW) • Shishaldin — ADVISORY (YELLOW)VOLCANO ALERTS: Great Sitkin — WATCH (ORANGE) • Kupreanof — ADVISORY (YELLOW) • Shishaldin — ADVISORY (YELLOW)

[{MarqueePlugin fetch='HansDataManager.toMarqueeText(alertLevel=WATCH)' speed='fast' bgcolor='#fff3cd' color='#856404'}] renders as:

VOLCANO ALERTS: Great Sitkin — WATCH (ORANGE)VOLCANO ALERTS: Great Sitkin — WATCH (ORANGE)

Notes

  • The banner uses CSS animation — it works in all modern browsers without
    any additional setup.
  • Moving the mouse over the banner pauses the scrolling; moving away
    resumes it.
  • You can place multiple banners on the same page and each will scroll
    independently.
  • The private user-keyword on a page still controls who can view the
    page; the plugin itself has no access restrictions.

No pages currently refer to this page.

No footnotes on this page.

No comments yet.