The only thing I think it might not specifically tell you on the demo page is that in scrollerbridge.php you have to configure your feed (addition highlighted):
Code:
<?php
/*
======================================================================
Pausing RSS Scroller bridge script
Author: Dynamic Drive (http://www.dynamicdrive.com)
Created: March 16th, 2006.
Function: Converts requested RSS feed from lastRSS into JavaScript array
======================================================================
*/
// include lastRSS
include "lastRSS.php"; //path to lastRSS.php on your server relative to scrollerbridge.php
// Create lastRSS object
$rss = new lastRSS;
$rss->cache_dir = 'cache'; //path to cache directory on your server relative to scrollerbridge.php. Chmod 777!
$rss->date_format = 'M d, Y g:i:s A'; //date format of RSS item. See PHP date() function for possible input.
$rss->cache_time = 1800; //Global cache time before fetching RSS feed again, in seconds.
// Define your list of RSS URLs- "RSS_id"=> "URL to RSS feed"
$rsslist=array(
"myfeed" => "http://www.contiwarehouses.com/rss.xml",
"cnn" => "http://rss.cnn.com/rss/cnn_topstories.rss",
"bbc" => "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml",
"news.com" => "http://news.com.com/2547-1_3-0-5.xml",
"slashdot" => "http://rss.slashdot.org/Slashdot/slashdot",
"dynamicdrive" => "http://www.dynamicdrive.com/export.php?type=new",
);
//Domains that are authorized to display scroller:
//Seperate multiple domains eac . . .
Then on the contiwarehouses.com/index1.php page you can change (this part is explained on the demo page, but I'll repeat it here):
Code:
<script type="text/javascript">
document.write("<br />") //add a divider for demo
new rsspausescroller("dynamicdrive", "pscroller2", "rssclass", 3000, "", "date+description")
</script>
to:
Code:
<script type="text/javascript">
new rsspausescroller("myfeed", "pscroller2", "rssclass", 3000, "", "date+description");
</script>
Since what you have there now is working for the Dynamic Drive feed, those are the only changes you should need, at least to get your feed displaying.
Note: This script is a bit outdated and at times doesn't handle things exactly right (notice the CDATA tags in the DD feed, and sometimes non-English characters or even just characters that aren't in the page's charset can present problems). If you have either of those problems with your feed once you get it displaying, let me know - I have an updated version. But, as long as it works for you as is, no need to update.
Bookmarks