滚动后继续显示选框内容

时间:2016-10-27 19:13:33

标签: javascript html css marquee

我有选框并且里面有一个文本,我想要的是显示文本的开头隐藏或开始滚动的文本的开头 这是标记代码

<div class="eventBar">
  <span>Events</span>
  <marquee style="width:93%;float:right" onmouseover="this.stop();" onmouseout="this.start();">
    <img src="images/favicon.ico" style="width:20px;margin:0 10px 0;vertical-align:-3px">   
     This is event number 44
    <img src="images/favicon.ico" style="width:20px;margin:0 10px 0;vertical-align:-3px">   
     This is event number 33
    <img src="images/favicon.ico" style="width:20px;margin:0 10px 0;vertical-align:-3px">   
     This is event number 22
    <img src="images/favicon.ico" style="width:20px;margin:0 10px 0;vertical-align:-3px">   
     This is event number 11
  </marquee>
</div>

现在的样子:Pic 2

这就是我想要的方式和一些解释:Marquee

非常感谢heling me。

1 个答案:

答案 0 :(得分:0)

Marquee已被弃用多年了..你必须为此找到一个javascript解决方案。这是一个回购可能是一个解决方案:https://github.com/aamirafridi/jQuery.Marquee我自己没有测试过它