当前位置: 首页 > 图文教程 > 网页制作 > HTML/XHTML教程 > 在主页中制作会移动的文字

HTML/XHTML教程
按颜色分类:红色系(Red)
按颜色分类:黄色系(Yellow)
网页设计配色精彩十例
按形容词分类:可爱、快乐、有趣
按形容词分类:柔和、明亮、温和
按形容词分类:运动型、轻快
按形容词分类:轻快、华丽、动感
按颜色分类:蓝紫色系(Purple Blue)
按形容词分类:回味、女性化、优雅
按形容词分类:简单、时尚、高雅
按形容词分类:忠厚、稳重、有品位
Xhtml第4天:调用样式表
Xhtml第7天:css入门知识
Xhtml第1天:选择什么样的DOCTYPE
Xhtml第10天:div自适应高度
Xhtml第12天:校验及常见错误
Xhtml第6天:XHTML代码规范
Xhtml第5天:head区的其他设置
Xhtml第8天:CSS布局入门技术
Xhtml第9天:第一个css布局实例

HTML/XHTML教程 中的 在主页中制作会移动的文字


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-04   浏览: 77 ::
收藏到网摘: n/a

基本语法:
  <marquee>需要移动的文字</marquee><direction=#>
  1.方向#=left, right
  例:<marquee direction=left>从右向左移动</marquee>>
   <marquee direction=right>从左向右移动</marquee>>
  
      2.次数<bihavior=#>#=scroll, slide, alternate
  例:<marquee behavior=scroll>一圈一圈的绕着移动</marquee>>
   <marquee behavior=slide>只移动一次就停</marquee>><marqueebehavior=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>