当前位置:网站首页>Web scrolling subtitles (marquee example)
Web scrolling subtitles (marquee example)
2022-07-28 06:20:00 【Haile learning】
stay webform Realize the riding light effect on the
The front desk :
<MARQUEE.stop().start() scrollamount=1 scrolldelay=1 direction= left border="1" style="width: 31%; height: 16px;">
<%=Structure%></MARQUEE>
backstage :
public string Structure = "";
On call Structure that will do
Dynamic implementation
The front desk :
<asp:Label runat="server" Text="Label"></asp:Label></div>
backstage :
Label1.Text += "<marquee.stop().start() scrollamount=1 scrolldelay=15 direction= right >";
for (int i = 0; i < dv.Table.Rows.Count; i++){
Label1.Text += string.Format("<a href=\"{0}\">{1}</a> " + " ", "Default2.aspx?id=" + dv.Table.Rows[i][0].ToString(), dv.Table.Rows[i][3].ToString());
}
Label1.Text += "</marquee>";
Marquee Basic grammar
<marquee> ... </marquee>
Setting of mobile attribute , This movement is not limited to text , It can also be applied to pictures , Forms, etc
Direction
<direction=#> #=left, right ,up ,down <marquee direction=left> Move from right to left !</marquee>
The way
<bihavior=#> #=scroll, slide, alternate <marquee behavior=scroll> Walk around in circles !</marquee>
<marquee behavior=slide> Just walk once and rest !</marquee>
<marquee behavior=alternate> Walk back and forth </marquee>
loop
<loop=#> #= frequency ; If not specified, the loop will not stop (infinite) <marquee loop=3 width=50% behavior=scroll> Just go 3 Trip to </marquee> <P>
<marquee loop=3 width=50% behavior=slide> Just go 3 Trip to </marquee>
<marquee loop=3 width=50% behavior=alternate> Just go 3 Trip to !</marquee>
Speed
<scrollamount=#> <marquee scrollamount=20> La la la , I walk so fast !</marquee>
Time delay
<scrolldelay=#> <marquee scrolldelay=500 scrollamount=100> La la la , Let me take a step , Stop. Stop !</marquee>
appearance (Layout) Set up
Alignment mode (Align)
<align=#> #=top, middle, bottom <font size=6>
<marquee align=# width=400> La la la , I can move !</marquee>
</font>
Background color
<bgcolor=#> #=rrggbb 16 Decimal numbers , 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)<hspace=# vspace=#>
<marquee hspace=20 vspace=20 width=150 bgcolor=ffaaaa align=middle> area !</marquee>
Direction
<direction=#> #=left, right ,up ,down <marquee direction=left> Move from right to left !</marquee>
The way
<bihavior=#> #=scroll, slide, alternate <marquee behavior=scroll> Walk around in circles !</marquee>
<marquee behavior=slide> Just walk once and rest !</marquee>
<marquee behavior=alternate> Walk back and forth </marquee>
loop
<loop=#> #= frequency ; If not specified, the loop will not stop (infinite) <marquee loop=3 width=50% behavior=scroll> Just go 3 Trip to </marquee> <P>
<marquee loop=3 width=50% behavior=slide> Just go 3 Trip to </marquee>
<marquee loop=3 width=50% behavior=alternate> Just go 3 Trip to !</marquee>
Speed
<scrollamount=#> <marquee scrollamount=20> La la la , I walk so fast !</marquee>
Time delay
<scrolldelay=#> <marquee scrolldelay=500 scrollamount=100> La la la , Let me take a step , Stop. Stop !</marquee>
appearance (Layout) Set up
Alignment mode (Align)
<align=#> #=top, middle, bottom <font size=6>
<marquee align=# width=400> La la la , I can move !</marquee>
</font>
Background color
<bgcolor=#> #=rrggbb 16 Decimal numbers , 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>边栏推荐
- How to view the transfer function of the module directly built by Simulink
- Overview of unconstrained low resolution face recognition I: data sets for low resolution face recognition
- 浅谈误码仪的使用场景?
- Tensorflow2.1 basic concepts and common functions
- D2sc-gan: low resolution face recognition of classroom scenes based on dual depth and shallow channel generation confrontation network
- Deep learning (I): enter the theoretical part of machine learning and deep learning
- N positions of bouncing shell
- The difference and connection between cookies, sessions and tokens
- (PHP graduation project) based on PHP student daily behavior management system access
- A comparative study of backdoor attack and counter sample attack
猜你喜欢

Nanjing University of Posts and Telecommunications CTF topic writeup (I) including topic address

Byte Android post 4 rounds of interviews, received 50k*18 offers, and successfully broke the situation under the layoff

Neural network optimization

线缆测试中遇到苦恼---某厂商案例分析?

PLC的选型

Protecting Against DNN Model Stealing Attacks 论文阅读心得

Difference between shallow copy and deep copy

8类网线测试仪AEM testpro CV100 和FLUKE DSX-8000哪些事?

TVS管参数与选型

EIGamal 密码体制描述
随机推荐
光伏发电系统——mppt最大功率点追踪
浅谈FLUKE光缆认证?何为CFP?何为OFP?
ESXi社区版网卡驱动2022年3月更新
When to replace jack socket for dsx-pc6 jumper module?
论福禄克DTX-1800如何测试CAT7网线?
Reversible watermarking method based on difference expansion
Fluke fluke aircheck WiFi tester cannot configure file--- Ultimate solution experience
The difference and relation between TCP and UDP
Bag of Tricks训练卷积网络的技巧
Ctfshow single dog -- Web
Nanjing University of Posts and Telecommunications CTF topic writeup (I) including topic address
Classification of iris based on Neural Network
在Asp.net 中Cookie的用法
TCL and eltcl? Cdnext and CMRL?
Difference between shallow copy and deep copy
Transformer 自注意力机制 及完整代码实现
关于Fusion on Apple Silicon的谨慎猜测
开关电源电路EMI设计在layout过程中注意事项
CVE_ 2017_ 11882 vulnerability recurrence (Metasploit opens NT remote desktop to add an account)
ASP.NET 读数据库绑定到 TreeView 递归方式