有没有对
Maqueen进行全面的操作的例子,一直弄不清这个问题

解决方案 »

  1.   

    <marquee behavior="SCROLL" direction="LEFT" bgcolor="#0000FF" height="30" width="150" hspace="0" vspace="0" loop="INFINITE" scrollamount="30" scrolldelay="500">Hello</marquee> behavior="SCROLL" 
    决定文字的卷动方式,可选值为: 
    SCROLL 一般卷动,是内定值。 
    SLIDE 如幻灯片,一格格的,文字一接触左边便全消失。 
    ALTERNATE 文字向左右两边撞来撞去。 direction="LEFT" 
    设定文字設定文字的卷动方向,LEFT 表示向左,是内定值,RIGHT 表示向右。 bgcolor="#0000FF" 
    设定文字卷动范围的背景颜色
    height="30" width="150" 
    >设定文字卷动范围,可采用相对或绝对,如 30% 或 30 等,单位为像素。 hspace="0" vspace="0" 
    设定文字的水平及垂直空白位置。 loop="INFINITE" 
    设定文字卷动次数,其值可以是正整数或 INFINITE,INFINITE 是默认值,表示无限次。 scrollamount="30" 
    每「格」文字间的间隔,单位是像素。 scrolldelay="500" 
    文字卷动的停顿时间,单位是毫秒。 
      

  2.   

    <html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script>
    <!--
    lstart=60
    loop=true
    speed=100 
    pr_step=2 function makeObj(obj,nest){
        nest=(!nest) ? '':'document.'+nest+'.'
        this.css=(document.layers) ? eval(nest+'document.'+obj):eval(obj+'.style')
    this.scrollHeight=document.layers?this.css.document.height:eval(obj+'.offsetHeight')
    this.up=goUp
        this.obj = obj + "Object"
        eval(this.obj + "=this")
        return this
    }
    function goUp(speed){
    if(parseInt(this.css.top)>-this.scrollHeight){
    this.css.top=parseInt(this.css.top)-pr_step
    setTimeout(this.obj+".up("+speed+")",speed)
    }else if(loop) {
    this.css.top=lstart
    eval(this.obj+".up("+speed+")")
      }
    }
    function slideInit(){
    oSlide=makeObj('divNews','divCont')
    oSlide.css.top=lstart
    oSlide.up(speed)
    }
    onload=slideInit
    //-->
    </script>
    </head><body bgcolor="#ffffd0">
    <div id="divCont"
    style="position:absolute; width:300; height:100; top:180; left:600; clip:rect(0,300,100,0)">
    <div id="divNews" style="position:absolute; top:0; left:0;background:#ff0000"><p>欢迎光临[孟宪会之精彩世界]<br>
    <a href="http://lucky.myrice.com">http://lucky.myrice.com</a><br>
    <a href="http://go.163.com/~colorweb">http://go.163.com/~colorweb</a>
    <br><img src="http://lucky.myrice.com/javabk1.jpg"></p>
    </div></div>
    </body></html>