博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
<marquee>实现链接/图片的滚动
阅读量:7283 次
发布时间:2019-06-30

本文共 1353 字,大约阅读时间需要 4 分钟。

制作会移动的文字

 

 

<marquee direction=left scrollamount=10 bgcolor="green" width="500" height="200" onMouseOver="this.stop()" onMouseOut="this.start()"> <a href="#"><img src="1.jpg" width="200" height="200" border=0/></a> <a href="#"><img src="2.jpg" width="200" height="200" border=0/></a> <a href="#"><img src="3.jpg" width="200" height="200" border=0/></a> </marquee>

 

基本语法:
<marquee>需要移动的文字</marquee>
<direction=#>
 

  1.方向 #=left, right,up,down

例:<marquee direction=left>从右向左移动</marquee>>
<marquee direction=right>从左向右移动</marquee>>

  2.次数 <bihavior=#> #=scroll, slide, alternate
例:<marquee behavior=scroll>一圈一圈的绕着移动</marquee>>
<marquee behavior=slide>只移动一次就停</marquee>>
<marquee behavior=alternate>来回移动,不停</marquee>>

  3.循环 <loop=#> # =次数,若未指定则循环不止(infinite)
例:<marquee loop=3 width=50% behavior=scroll>只走 3 趟</marquee>

  4.速度加快 <scrollamount=#>
例:<marquee scrollamount=20>移动速度加快</marquee>>

  5.速度减慢 <scrolldelay=#>
例:<marquee scrolldelay=500 scrollamount=100>移动速度减慢</marquee>

  6.底色 <bgcolor=#>
#=rrggbb 16进制数码,或者是下列预定义色彩:
Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime,
Fuchsia, White, Green, Purple, Silver, Yellow, Aqua
例:<marquee bgcolor=red>是红色的</marquee>

  7.面积 <height=# width=#>
  例:<marquee height=80 bgcolor=red>面积变大了</marquee>

       8.比如鼠标放到 移动链接文字上时,链接停止,鼠标移开,链接继续移动

          <marquee  direction=left   onMouseOver="this.stop()" onMouseOut="this.start()"> 

     

转载地址:http://cdkjm.baihongyu.com/

你可能感兴趣的文章
服务器硬件监控之OMSA
查看>>
Oracle OS Watcher 工具 使用详解
查看>>
Oracle CRS stack is already configured and will be running under init(1M)
查看>>
未来APP可直接打开小程序 小程序商业化大幕正式开启
查看>>
Proguard 案例
查看>>
python 操作windows下目录的相关函数
查看>>
Ubuntu14.04修改IP地址
查看>>
httpd详解
查看>>
ansible(七)Conditionals 和 loops,自定义loops插件
查看>>
Spring 中优雅的获取泛型信息
查看>>
Haproxy 配置详细讲解
查看>>
zabbix 监控 TCP 连接数
查看>>
Python 学习资源汇总
查看>>
zabbix3.4.4集成graphtrees图文笔记
查看>>
Android中的管理工具类log可以这么些.....
查看>>
CentOS上Broadcom无线网卡驱动安装
查看>>
寻找系统参与者的15个问题
查看>>
工厂模式
查看>>
78.LAMP架构介绍,MYSQL和MariaDB介绍,MYSQL安装
查看>>
SSL *** Reconnect
查看>>