You are here:  NetStrider » Tutorials » HTMLRef » Commands » MARQUEE «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <MARQUEE> Command next

Command Syntax:

<MARQUEE command parameters>
  some scrolling text
</MARQUEE>

The command generates a scrolling marquee using the parameters provided.  At present, the command works only in the Internet Explorer browser.

Command Parameters:
align="top | middle | bottom"

Defines alignment of ordinary text placed near the marquee where:

  • top -
    aligns surrounding text to the top of the marquee boundary.

  • middle -
    aligns surrounding text to the middle of the marquee boundaries.

  • bottom -
    aligns surrounding text to the bottom of the marquee boundary.

behavior="alternate | scroll | slide"

Defines way in which text within the marquee will display where:

  • alternate -
    text appears to move from side to side within the boundaries of the marquee.

  • scroll -
    text begins off screen and scrolls toward the opposite side until it disappears off screen again before repeating.

  • slide -
    text moves in from off screen, moves toward the opposite boundary of the marquee, and stops when it encounters the boundary.

bgcolor="named color | color value"

Defines the background color used within the marquee.  Background color can be expressed either as a named color or as a hexadecimal color value.


direction="left | right"

Determines the initial direction in which the marquee text will move.

height|width="% | pixels"

Determine the height and/or width of the marquee either in pixels or as a percent of the space available for display, respectively.


hspace|vspace="pixels"

Determine the horizontal and/or vertical standoff which surround the marquee and define the amount of white space between the boundaries of the marquee and surrounding normal text, respectively.


loop="integer | infinite"

Determines the number of times the text in the marquee will repeat the scrolling action where:

  • -1 -
    the scrolling will continue indefinitely - same as infinite.

  • integer -
    the scrolling will continue until the integer value is reached and then stop.

  • infinite -
    the scrolling will continue indefinitely - same as -1.

scrollamount="pixels"

Determines the number of pixels by which each iteration of the scrolling display is incremented.  Smaller values produce slower but smoother scrolling effects.


scrolldelay="milliseconds"

Determines the integer number of milliseconds which elapse between successive iterations of the scrolling display.  Smaller numbers produce more rapid scrolling effects.

Example:
<table width=100% border=4> <tr> <td width=100% align=center valign=center> <marquee align="middle" behavior="slide" bgcolor="cornsilk" direction="left" height="40" width="100%" scrollamount="5" scrolldelay="1"> <font color="brown" size=6><b> Scrolling Marquee Text </b></font> </marquee> </td> </tr> </table> Yields -

A scrolling marquee as displayed below but only in the Internet Explorer browser:

Scrolling Marquee Text

Scrolling Marquee Loading
[ Animated 300K Simulation GIF for Netscape above ]

The Netscape browser is not capable of marquee displays.  View the animated GIF simulation above instead.

Return to Section M:R


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz