IHTMLMarqueeElement::loop Property

Sets or retrieves the number of times a marquee will play.

Syntax

HRESULT IHTMLMarqueeElement::get_loop(long *p);
HRESULT IHTMLMarqueeElement::put_loop(long v);

Parameters

  • p
    Pointer to a variable of type long that receives one of the values listed in Possible Values.
  • v
    long that specifies one of the values listed in Possible Values.

Possible Values

0, -1 Loops infinitely.
count Number of times to loop.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

In each of the following boundary cases, the marquee loops infinitely.

<MARQUEE SCROLLAMOUNT=30 LOOP>This is some scrolling text.</MARQUEE> Loops infinitely.
<MARQUEE SCROLLAMOUNT=30 LOOP=0>This is some scrolling text.</MARQUEE> Loops infinitely.
<MARQUEE SCROLLAMOUNT=30 LOOP=>This is some scrolling text.</MARQUEE> Loops infinitely.

If you set the IHTMLMarqueeElement::loop property to null or 0 in script, a scripting error occurs.