tenniswire.org Tennis Industry Association NEWSMAKER LOGIN
become a newsmaker
SITEWIDE SEARCH

FREE NEWSLETTER!

Sign up for email updates.
Type email address in box and click GO. privacy policy
Editor's Note-
Welcome to TENNISWIRE.org!


07/01/04 - Now you can stay on top of what is happening in the tennis industry by visiting just one website--TENNISWIRE.org.

Press releases from tennis companies are updated constantly in our searchable database so you can find the information quickly by date, subject, company and more.

Stay tuned to the 'Editor's Note,' too, for special announcements and features.


Liza Horan, Editor
liza@tenniswire.org
NEWSFEEDS - CONFIGURATION
You can configure newsfeeds in two ways:

1. Use Cascading Style Sheets

For JavaScript and the IFRAME, the headlines are placed inside of an HTML table cell. The class names for the tags are:

  • <table class='tenniswireNewsFeedTBL'>
  • <tr class='tenniswireNewsFeedTR'>
  • <td class='tenniswireNewsFeedTD'>
  • <a class='tenniswireNewsFeedHREF' href=''>
Set the style for these classes any way you choose.

2. Specify Additional Parameters for the Newsfeed:

By default, you receive one headline. However, you can opt to receive more than one headline at a time and choose how far back you wish to go. Also, you can specify a refresh rate (for IFRAME) that determines how frequently (in seconds) the IFRAME is refreshed.

Simply add the following fields, along with desired values, onto the query string:

  • headLineCount
  • daysBack
  • refreshRate

IFRAME Example

The Code: <iframe src='http://tenniswire.org/newsFeeds/ tenniswireNewsFeedIF.php?headLineCount=2&daysBack=30&refreshRate=10&newWindow=yes' width='400' height='100' frameBorder='0' scrolling='no'></iframe>
The Resulting Newsfeed:
This configuration will cycle through all headlines for the past month. Every 10 seconds, the IFRAME will refresh with a different headline.

Javascript Example

The Code: <script language="JavaScript" src='http://tenniswire.org/newsFeeds/tenniswireNewsFeedJS.php?headLineCount=3&daysBack=90&refreshRate=4&newWindow=yes'></script>
The Resulting Newsfeed:
This configuration will cycle through all headlines for the past 90 days, 3 at a time. Every 4 seconds, the JavaScript will refresh with 3 more headlines.