Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

More Help...rss Feeds This Time


  • Please log in to reply
1 reply to this topic

#1 mistaWAC

mistaWAC

  • Members
  • 8 posts
  • OFFLINE
  •  
  • Location:USA
  • Local time:05:52 AM

Posted 29 January 2007 - 07:15 PM

Once again I'm confused. I used to know how to do all of this HTML and PHP stuff, then I took a break from it to develop a social life. Not trying to say that people that do web dev are lifeless losers, just saying that I was for the most part. Anywho, now I really forget how to do anything more complicated than tables and it just ticks me off...

Now onto the beef. I'm trying to embed an RSS Feed into my webpage, my own RSS Feed. I'm attempting to follow this tutorial: http://www.dynamicdrive.com/dynamicindex17...oller/index.htm and it's really, really confusing me. I want to use the thinner looking one, the one that says CNN Feed above it, but I cannot figure out what part of the code to extract and drop into my code.

After that, I couldn't figure out which file I had to edit to add my own news.

Thanks for any help!

BC AdBot (Login to Remove)

 


#2 shawnplr

shawnplr

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:04:52 AM

Posted 12 February 2007 - 08:50 PM

demo.htm between
<head>
<style type="text/css">
#pscroller1{
width: 450px;
height: 1.2em;
border: 1px dashed black;
padding: 5px;
background-color: lightyellow;
}
</style>

<script type="text/javascript" src="rsspausescroller.js">
</script>

</head>

<body>
<script type="text/javascript">
new rsspausescroller("cnn", "pscroller1", "rssclass", 3000, "_new")
document.write("<br />") //add a divider for demo
new rsspausescroller("dynamicdrive", "pscroller2", "rssclass", 3000, "", "date+description")
</script>
</body>

in lastrss file edit scrollerbridge.php.
$rsslist=array(
"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",
);

Edited by shawnplr, 12 February 2007 - 09:05 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users