First glance at MARQUEE:
The Marquee tag is used to scroll text in the available browsing area. This tag is only applicable to browsers later than ie3.
Format:
<Marquee align = "... "Alignment the scrolling text based on the set value. ALIGN can be set to LEFT, CENTER, RIGHT ....
BEHAVIOR = "... "Once the text appears on the page, the browser can process the text as set.
BGCOLOR = "... "BGCOLOR: used to set the background color of subtitles.
DIRECTION = "... "Used to set the direction of text scrolling
HEIGHT = "... "Used to set the height of rolling subtitles
WIDTH = "... "Used to set the subtitle width
HSPACE = "... "Used to set the Left and Right blank space for Rolling subtitles
VSPACE = "... "Used to set up and down spaces for scrolling subtitles
LOOP = "... "To set the number of times subtitles are rolled. When the LOOP value is "INFINITE" or "-1", the text will scroll unlimitedly.
SCROLLAMOUNT = "... "Is used to set the interval after each continuous scrolling text, which is represented in pixels.
SCROLLDELAY = "... "Sets the interval between two rolling operations, in milliseconds.
>...
</MARQUEE>
A simple example:
<Marquee direction = "up" width = "100" bgcolor = "# ffcc66" style = "Z-INDEX: 124; LEFT: 80px; POSITION: absolute; TOP: 312px "onmouseover =" this. stop () "onmouseout =" this. start () "> // onmouseover =" this. stop () "responds to the mouse over the event-stop moving text
/// Onmouseout = "this. start ()" move the mouse away from the event response-text continues to move
// The following figure shows how to create a DataList to dynamically update the displayed text. (The text can be updated when the database is updated)
<Asp: DataList ID = "DataList1" Runat = "server" Font-Size = "Smaller"> "〉
<ItemTemplate> 〉
<Table width = "100" border = "0" cellpadding = "0" cellspacing = "0">
<Tr>
<Td width = "100" align = "center" valign = "middle"> <% # DataBinder. Eval (Container. DataItem, "announcement content") %> </td>
</Tr>
</Table>
</ItemTemplate>
</Asp: DataGrid>
// The above is to help set the DataList data source to the "announcement content" field. The specific DataList data help is basically the same as the DataGrid, many. net books, please refer to other materials by yourself.