It's certainly possible, though what can make it complicated arae the finer details of what you're trying to do. In general, you can get the script to change feeds midway by:
1) Add the below new function to the end of the rsspauseticker.js:
Code:
// -------------------------------------------------------------------
// do_updatefeed()- Updates a ticker with a new feed
// -------------------------------------------------------------------
rsspausescroller.prototype.updatefeed=function(RSS_id){
var parameters="id="+encodeURIComponent(RSS_id)+"&divid="+this.tickerid+"&bustcache="+new Date().getTime()
rsspausescroller.getRSScontentJS(bridgepath+"?"+parameters)
}
2) With the new function installed, you can get a ticker to change feeds via a link this way:
Code:
<script type="text/javascript">
var cnnstuff=new rsspausescroller("cnn", "pscroller1", "rssclass", 3000, "_new")
</script>
<!--update feed to that with RSS_id="dynamicdrive"-->
<a href='javascript:cnnstuff.updatefeed("dynamicdrive")'>test</a>
The code in red highlights what's new relative to your old code. Basically, you define an arbitrary variable "cnnstuff" to reference this particular ticker instance, then inside a link or elsewhere, call "cnnstuff.updatefeed()" to update its feed.
This is the basic idea. Obviously you'll have to take it a step further based on what you described you're trying to do.
Bookmarks