First download these 3 components and store it somewhere accessible on SharePoint. Thanks to the wonderful folks who did the hard work and came up with those great components!
jQuery - http://jquery.com/
jQuery.SPServices - http://spservices.codeplex.com (read documentation thoroughly for compatibility)
jQuery.Marquee from givainc - http://www.givainc.com/labs/marquee_jquery_plugin.cfm
(in the case of jQuery Marquee, make sure you also include the css file for default styling)
Create a simple text file and include references to those components. I am using a plain text file so that I could include it later in a Content Editor Webpart.
<link rel="stylesheet" href="/sites/SiteCollectionDocuments/jquery.marquee.min.css" />
<script src="/sites/SiteCollectionDocuments/jquery-1.8.3.js"></script>
<script src="/sites/SiteCollectionDocuments/jquery.marquee.min.js"></script>
<script src="/sites/SiteCollectionDocuments/jquery.SPServices-2013.01.min.js"></script>