|
CaRP: Caching RSS Parser - Manual Version 2.7.5 (8/13/2003)
Download | Installation | Configuration | Functions | Examples | Donations
Examples: First, in the <head> section of your webpage, define a few CSS styles:
<style type="text/css"> .h2 { font-family: Trebuchet MS,Palatino,Times New Roman,serif; font-size: 13pt; font-weight: bold; } .h3 { font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 9pt; font-weight: bold; } </style> Then, this code in the <body> of your webpage will display the newsfeed. Notice the use of "h2" and "h3", the classes defined above.
<div style="width:220; border-width:1px; border-style:solid; border-color:#333333; background:#eeeeee; padding:5px;">
<?php require_once "/path/to/carp.php"; CarpConf('linkdiv','<div style="background:#cccccc; width:210; padding:2px; border-width:1px; border-style:solid; border-color:#333333;">'); CarpConf('linkstyle','text-decoration:none'); CarpConf('linkclass','h3'); CarpConf('showdesc|showctitle|showcdesc',1); CarpConf('maxitems',3); CarpConf('cclass','h2'); CarpShow("http://nwt.mouken.com/rss/headlines.rdf","nwt.cache"); ?> </div> |
Example Output:
![]() |