Marquee Control Interprets Slide Behavior as Scroll Behavior

ID: Q231297


The information in this article applies to:


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> 

Additional query words:


Keywords          : kbenv msiew95 msient 
Version           : WINDOWS:4.0,4.01,4.01 Service Pack 1,4.01 Service Pack 2
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: June 24, 1999