Basic syntax
<Marquee>... </marquee>
Mobile attribute settings, such movement is not limited to text, but can also be applied to images, tables, and so on.
Direction
<Direction =#>#= left, right, up, down <marquee direction = left> shift from right to left! </Marquee>
Method
<Bihavior =###= scroll, slide, alternate <marquee behavior = scroll> go around in a circle! </Marquee>
<Marquee behavior = slide> just one stop! </Marquee>
<Marquee behavior = alternate> back and forth </marquee>
Loop
<Loop =#># = number of times; if not specified, the loop is not limited to (infinite) <marquee loop = 3 width = 50% behavior = scroll> 3 </marquee> <p>
<Marquee loop = 3 width = 50% behavior = slide> only take 3 </marquee>
<Marquee loop = 3 width = 50% behavior = alternate> only 3 trips! </Marquee>
Speed
<Scrollamount = #> <marquee scrollamount = 20> La la! </Marquee>
Latency
<Scrolldelay = #> <marquee scrolldelay = 500 scrollamount = 100> La la! Let's take a step and stop it! </Marquee>
Layout settings
Align)
<Align =#>#= top, middle, bottom <font size = 6>
<Marquee align = # width = 400> La la, I will move it! </Marquee>
</Font>
Background Color
<Bgcolor = #>#= rrggbb hexadecimal digital, or the following predefined colors:
Black, Olive, teal, red, blue, maroon, navy, gray, lime,
Fuchsia, white, green, purple, silver, yellow, Aqua <marquee bgcolor = aaaaee> color! </Marquee>
Area
<Height = # width =#> <marquee Height = 40 width = 50% bgcolor = aaeeaa> area! </Marquee>
Blank
(Margins)
<Marquee hspace = 20 vspace = 20 width = 150 bgcolor = ffaaaa align = middle> area! </Marquee>
Direction
<Direction =#>#= left, right, up, down <marquee direction = left> shift from right to left! </Marquee>
Method
<Bihavior =###= scroll, slide, alternate <marquee behavior = scroll> go around in a circle! </Marquee>
<Marquee behavior = slide> just one stop! </Marquee>
<Marquee behavior = alternate> back and forth </marquee>
Loop
<Loop =#># = number of times; if not specified, the loop is not limited to (infinite) <marquee loop = 3 width = 50% behavior = scroll> 3 </marquee> <p>
<Marquee loop = 3 width = 50% behavior = slide> only take 3 </marquee>
<Marquee loop = 3 width = 50% behavior = alternate> only 3 trips! </Marquee>
Speed
<Scrollamount = #> <marquee scrollamount = 20> La la! </Marquee>
Latency
<Scrolldelay = #> <marquee scrolldelay = 500 scrollamount = 100> La la! Let's take a step and stop it! </Marquee>
Layout settings
Align)
<Align =#>#= top, middle, bottom <font size = 6>
<Marquee align = # width = 400> La la, I will move it! </Marquee>
</Font>
Background Color
<Bgcolor = #>#= rrggbb hexadecimal digital, or the following predefined colors:
Black, Olive, teal, red, blue, maroon, navy, gray, lime,
Fuchsia, white, green, purple, silver, yellow, Aqua <marquee bgcolor = aaaaee> color! </Marquee>
Area
<Height = # width =#> <marquee Height = 40 width = 50% bgcolor = aaeeaa> area! </Marquee>
Blank
(Margins)
<Marquee hspace = 20 vspace = 20 width = 150 bgcolor = ffaaaa align = middle> area! </Marquee>
================================
TIPS:
When you move the mouse over it, the scroll stops. When you move the mouse away, the scroll continues?
------------------------------------
<Marquee id = "Li" onmouseover = "this. Stop ()"
Onmouseout = "This. Start ()"> rolling content </marquee>
====================
One instance:
Effect: (Asp.net) scroll the DataGrid and add a link image to the front. When the mouse is placed on it, the scroll is stopped and the scroll continues when the cursor is removed)
Instance code:
<TD style = "width: 230px" valign = "Middle" align = "Left" Height = "100">
<Marquee style = "width: 220px; Height: 80px" direction = "up" scrolldelay = "300" onmouseover = "this. Stop ()"
Onmouseout = "This. Start ()">
<Asp: DataGrid id = "dggonggao" runat = "server" width = "100%" Height = "76px" borderwidth = "0px" showheader = "false"
Autogeneratecolumns = "false" gridlines = "NONE" pagesize = "100">
<Columns>
<Asp: templatecolumn headertext = "announcement title">
<Itemtemplate>
<A target = _ blank href = '<% # databinder. eval (container, "dataitem. Announcement No.", "gonggao. aspx? Id = {0} ") %> '>
</a>
<Asp: hyperlink runat = "server" text = '<% # databinder. eval (container, "dataitem. title ") %> 'navigateurl = '<% # databinder. eval (container, "dataitem. announcement No. "," gonggao. aspx? Id = {0} ") %> 'target =" _ blank "id =" hyperlink3 ">
</ASP: hyperlink>
</Itemtemplate>
</ASP: templatecolumn>
</Columns>
</ASP: DataGrid> & nbsp; & nbsp;
& Nbsp; </marquee> & nbsp; & P; & nbsp; <asp: hyperlink id = "hlallgonggao" runat = "server" navigateurl = "allgonggao. aspx "target =" _ blank "> all announcements >></ASP: hyperlink> & nbsp;
</TD>