The IWDN

Advanced Search





You are not logged in.

IWDN Forum Index > Web Development > Programming >> RSS AJAX Newsticker

Reply
 
Thread Tools
Old March 16th, 2010, 10:14   #1
JavaScriptBank
Aspiring Professional
 
Join Date: Sep 2009
Posts: 94
RSS AJAX Newsticker

This JavaScript tutorial will show you how to combine RSS, AJAX, and JavaScript to create a real-time RSS ticker.

Thanks to AJAX... detail at JavaScriptBank.com - 2.000+ free JavaScript codes

[CENTER]
Demo: JavaScript RSS AJAX Newsticker
[/CENTER]

How to setup

Step 1: Place JavaScript below in your HEAD section
JavaScript
Code:
<script type="text/javascript" src="rssticker.js"></script>
Step 2: Copy & Paste HTML code below in your BODY section
HTML
Code:
CNN:
<DIV style="HEIGHT: 100px; border-style: dotted; border-width: 1px; background-color: silver; text-align: left;">
<script type="text/javascript">
//rss_ticker(RSS_id, cachetime, divId, divClass, delay, optionalswitch)
new rss_ticker("CNN", 60, "cnnbox", "cnnclass", 200)

</script>
</DIV>
<br><br><br>
Each ticker on the page can be invoked independently, for example:
<DIV style="HEIGHT: 100px; border-style: dotted; border-width: 1px; background-color: silver; text-align: left;">
<PRE><script type="text/javascript">
//rss_ticker(RSS_id, cachetime, divId, divClass, delay, optionalswitch)
new rss_ticker("CNN", 60, "cnnbox", "cnnclass", 2000)
</script></PRE>

</DIV>
Step 3: Download files below
Files
rssticker.js






[CENTER]JavaScript Spotlight - JavaScript Validate E-Mail - AJAX Page Content Loader[/CENTER]
JavaScriptBank is online now   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump