I have used below code to show a scrolling text in a content editor web part on my home page in SPO team site. [ very similar to marquee tag. We can't use marquee as W3C standards doesn't support!]

     <p><b id='banner'></b></p>
     var newBanner=0;
     function runOnLoad(){
        var bannerImg = new Array();
            var bannerLink = new Array();
      var herelink="http://google.com";
     var linktext= "here";
     bannerImg[1]="Welcome2  Click " + 
               ') + " to know more abt Sundar";
           var totalBan = bannerImg.length;

                if (newBanner == totalBan)
                   newBanner = 0;
        document.getElementById('banner').innerHTML="<Span style
                   ='font-weight: bold; 
            setTimeout("runOnLoad()", 4*1000);

but i am not getting how to make this scrolling text,on a vertical manner.

Also would like to know how to read from an announcements list, if my scrolling text is dynamic.[Currently its set as Static text].

Also if there exist,any other free jQuery plugins,I can use it for scrolling text?.


To read from the Announcements list, you can use SharePoint API REST with JavaScript like this:

    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    success: function (data) {
        if (data.d.results.length > 0 ) {
    error: function (data) {
        alert("Error: " + data);

For the vertically scrolling text, you have some jQuery plugins in order to achieve that:

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.