Click a brother

This interaction requires Flash Player version 7 or greater.

This is an example of JavaScript calls being sent from a Captivate SWF to the browser window, where the calls are received and acted upon.

Clicking one of the Captivate SWF's "click boxes" (invisible, located over the Mario brothers) will send a JavaScript call from the SWF to the browser window. For this example, the click boxes both call a simple function named identify(), with the particular character's name passed as a variable: identify("luigi");.

identify() was defined in the HTML, and manipulates DOM elements to display a message.

Demonstration created by Philip Hutchison, July 2007 for this journal entry.
Mario artwork © Nintendo.

Source files.