Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I would like to customize my RSS Viewer to scroll vertically and I have my Javascript code to allow it to scroll but I do not know where to place this code. Where do I put my code in the .xsl file?

share|improve this question
    
Have you tried adding the code in a separate content editor web part? –  Tom Resing Sep 3 '10 at 15:06
    
I was able to do it, thanks. –  sange Sep 3 '10 at 17:48
add comment

1 Answer 1

up vote 1 down vote accepted

I figured I would add this as an answer since it would be too big for the comment. Here is the code for it:

Jquery reference needed
<SCRIPT language=JavaScript type=text/javascript> var html = ''; $(document).ready(function(){ $.get('feed URL', function(xml){ $("item", xml).each(function(){ $(this).find("link").each(function(){ html += "<a href='" + this.text +"'>"; }).end().find("title").each(function(){ html += this.text + "</a><br />";}).end().find("description").each(function(){ html += "<div>" + this.text +"</div>"; })}); $("#rss").html(html).slideDown("fast");});}); </SCRIPT>
<.div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
<.div id="vmarquee" style="position: absolute;">
<.div id="rss" style="width: 190px; border:0px">Loading...<./div><./div><./div>

I added .'s to the HTML to show up and it is all one line to be minimized. You just need to change the 'feed URL' and it should work.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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