简体   繁体   中英

Keep showing marquee content after it has been scrolled

I have marquee and there is a text inside it, what I want is to show the start of the text when the start of the text is hidden or begin scrolled this is the markup code

<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>

How it looks now : Pic 2

This is how I want it to be and some explanation : Marquee

Thanks a lot for heling me.

Marquee is deprecated for many years now .. You'll have to find a javascript solution for this. Here is a repo what might be a solution: https://github.com/aamirafridi/jQuery.Marquee I haven't tested it myself

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM