Marquee Control Interprets Slide Behavior as Scroll Behavior (231297)



The information in this article applies to:

  • Microsoft Internet Explorer 4.01 for Windows NT 4.0 SP 1
  • Microsoft Internet Explorer 4.01 for Windows NT 4.0 SP 2
  • Microsoft Internet Explorer 4.0 for Windows NT 4.0
  • Microsoft Internet Explorer 4.01 for Windows 98 SP 2
  • Microsoft Internet Explorer 4.01 for Windows 95 SP 1
  • Microsoft Internet Explorer 4.01 for Windows 95 SP 2
  • Microsoft Internet Explorer 4.0 for Windows 95

This article was previously published under Q231297

SYMPTOMS

When you use Internet Explorer 4 to view a Hypertext Markup Language (HTML) page that uses the Marquee control with Slide behavior, Internet Explorer may treat it as Scroll behavior. The scrolling Marquee tag scrolls text across the screen.

CAUSE

Internet Explorer 4 interprets the Marquee behavior code incorrectly.

RESOLUTION

To work around this behavior in Internet Explorer 4, change the HTML code in the page as outlined below. In this example, the text "If Friends Were Flowers" should be sliding:
<HTML>
   <HEAD>
   <TITLE>THIS IS A TEST.</TITLE>
   </HEAD>
   <BODY>
   <MARQUEE behavior="slide" loop=1>If Friends Were Flowers</MARQUEE>
   </BODY>
</HTML>
				

STATUS

This problem has been corrected in Internet Explorer 5.

MORE INFORMATION

The Marquee control has three kinds of behavior: Slide, Scroll, and Alternate. If you do not specify the marquee behavior in your HTML code, the Marquee control uses the default behavior, which is scroll.

For example, you can specify these behaviors in your HTML code for Internet Explorer 5 viewing:
<Marquee behavior="slide">If Friends Were Flowers (Slide)</marquee>

<Marquee behavior="scroll">I'd Pick You! (Scroll)</marquee>

<Marquee behavior="Alternate">Kitty's Homepage (Alternate)</marquee>

<Marquee>Who is Kitty? Where is she from? (Default)</marquee>
				

Modification Type:MajorLast Reviewed:12/5/2003
Keywords:kbenv kbprb KB231297