Showing posts with label RSS and Javascript News Feeds. Show all posts
Showing posts with label RSS and Javascript News Feeds. Show all posts

Thursday, August 16, 2007

Free Download RoboForm - Automate Logins - Remember Passwords

RSS and Javascript Newsfeeds

RSS newsfeeds are all the buzz. An RSS feed is handy on your desktop or in your Yahoo pages but what about adding some live news to your website. You can add RSS to a website, however, this is usually involved and generally is no better than HTML or Javascript news sources. In some cases if you use an RSS feed some viewers will not be able to view this news. RSS involves XML and PHP and this requires extra learning, coding and time. Below are some quick solutions to adding an HTML or Javascript live news feed to any template or website.

Before you start
Below is some newsfeed code and some recommended newsfeed services to use with the code. If you use any of these services be sure to read their "Terms of Use" or "Policies" as many feeds have different rules.

ADD-ON BUGS (Please Read):
You may encounter some problems in some templates with the "auto scrolling" add-on in IE due to bugs in this browser. In some cases the scroller will not work on your local hard drive but may work when uploaded. In some cases your template DOCTYPE may be the problem. Be aware Allwebco does NOT provide support for these errors. If this scroller works in your template in IE then it will cause no problems and will work in all other newer browsers.

There are no know bugs if you use code from Example #1 on this page.

Your display options
The samples on this page are showing newsfeeds in small windows on the right. If you want the content right on an HTML page instead, such as on your home or links pages, skip the next section and go right to "News Feed Services" later on this page. If you want to use a small window like the samples on the right at your site, on any page or in a .js file such as in your sidebar.js or under the links on a vertical menu in your menu.js keep reading.

Example #1 "Freshcontent.net" feed
The first example on this page is using a news feed from Fresh Content. Fresh Content does not allow their news to display in a scrolling ticker of any kind so we are using a static IFrame. Download this add-on and follow the steps on the included "help-news_iframe.html".

Download complete code and instructions for Sample #1 (.zip)


Example #2 "Worldpress.org" feed
Example two is using a feed from Worldpress.org. To add a scroller as seen in example #2, first, download and setup the scrolling news IFrames script. Come back to this page and download the "Worldpress news page" below to replace the "news_win.htm".

Download the Worldpress.org news page only (.zip)


Example #3 "Freenewsfeed.com" feed
Example three is using a feed from Freenewsfeed.com. To add a scroller as seen in example #3, first, download and setup the scrolling news IFrames script. Come back to this page and download the "Worldpress news page" below to replace the "news_win.htm".

Download the Freenewsfeed.com news page only (.zip)


Using other news feeds
With these examples you can use an HTML or Javascript news feed from any news source. To set this up, Setup the scrolling news IFrames script in your template. Go to the news feed site you have chosen and follow their steps to add their code to the "news_win.htm".

The feed I want to use offers only RSS feeds
RSS is tricky to setup. Here are some options you can check.

Converters:
RSS to JavaScript at Feed2JS
Free RSS to JavaScript Service
RSS & Atom Software & Services
Advanced users:
Using RSS News Feeds at Web Reference



Javascript HTML News Feed Services


The newsfeed services listed below all offer HTML Javascript code so a newsfeed can be easily added to any Allwebco template or website. Follow the directions at the following websites to add live news to your website.

Worldpress.org | Go to Worldpress.org Newsfeeds
With this service you can add HTML news feeds to any website or template. They offer HTML Javascript or RSS code. They ask you to link back to their website. This feed is example #2 on this page.

Send2Press | Go to Send2Press Newsfeeds
With this service you can add HTML news feeds to any website or template. They offer HTML Javascript or RSS code. You must send them a link to show where you have added the newsfeed at your site. This feed has been on-line since 1998.

Freshcontent.net | Go to Freshcontent.net Newsfeeds
With this service you can add news feeds like "outdoors", "travel" or "entertainment" to any website or template. They offer easy to add Javascript code. They do not allow the news to be displayed in a scroller or ticker. This feed is example #1 on this page.

FreeNewsFeed.com | Go to FreeNewsFeed.com
Newsfeeds from USA Today, VNU Business Online and others. They offer HTML Javascript or RSS code. This feed is example #3 on this page.

News4Sites | Go to News4sites.com
Just did a quick test of one news feed on this site and it had a nice ticker effect. It looks like they have a few options for adding news feeds to a website.


Related Topics:
Scrolling News IFrames
Static IFrames
More Scripts

source: allwebco-templates.com

Read more...

Thanks for visiting my blog, subscribe to my RSS feed. Thanks for visiting!
Free Download RoboForm - Automate Logins - Remember Passwords

Simple News Scroller

This is a very simple scroller script that can be added to any HTML page, to a sidebar.js or under your menu in the menu.js. This add-on has been tested and is compatible in IE, Netscape, Firefox and Opera browsers.

ADD-ON BUGS (Please Read):
You may encounter some problems in some templates with the "auto scrolling" add-on in IE due to bugs in this browser. In some cases the scroller will not work on your local hard drive but may work when uploaded. In some cases your template DOCTYPE may be the problem. Be aware Allwebco does NOT provide support for these errors. If this scroller works in your template in IE then it will cause no problems and will work in all other newer browsers.

The Examples >>>
On the right on this page are three examples. All examples are an embedded standard HTML page that uses an IFrame and Javascript to scroll. Example one is set to scroll through the page and then rescroll from the bottom. Example two is set to scroll through and then restart. Example three is like example one but is setup with an RSS type news feed. This feed is using Javascript instead of XML. This news feed can be added to any HTML website is available for free at worldpress.org. For more info please see adding news feeds.


Skip the steps and download:
In a rush? Just click below to download the embedded HTML page and code samples for this add-on. Refer back to this page for help.

Download Scrolling News With Samples (.zip)


Step #1 HTML code:
Select and copy the following code. Paste this into THE "MAIN" or "CONTENT" table on any of your HTML template pages.

FOR AN HTML PAGE:


If you use the code above you can float this with a DIV. Click here for details. NOTE: The samples in the download above on this page include DIV code.


Step #1 in a .js file:
Or... If you would like to globally add this to all your pages you can paste this into your sidebar.js or in your menu.js.

In a sidebar.js One option would be to add the code below just before the "SMALL PICTURE AREA" note. Make a copy of your sidebar.js for backup and try pasting in the code and test your pages in a web browser.

In a menu.js If you have a vertical menu style you can probably add this to your menu.js. Make a backup of your menu.js. Open the menu.js and try pasting the code below near the bottom of this file. Most likely you will add this just before some < /td>< /tr>< /table> or < /div> code. This may not work in some template models see the step above for HTML page options instead.


FOR A .JS FILE LIKE THE sidebar.js OR menu.js:


Step #2:
Download the embedded page "news_win.htm" and place this page in your main template folder with your other HTML pages.

Download News Page With No Samples (.zip)

Or...

Download Scrolling News With Samples (.zip)


Step #3:
Test your webpages. The scroller should now be working. Edit the "news_win.htm" to change your page text for the scroller.


Set speeds:
You can edit the "news_win.htm" to change speeds and starting pause time. These are variables near the bottom of this page. See the notes in this file in HTML source view.

News font colors:
You can edit the page font colors and sizes. This will be the CSS code near the top of the "news_win.htm".

News box, border and title colors:
The box colors and title color will be in the HTML code you added to your pages. Not in the "news_win.htm".

News box size:
Edit the IFrame height and width in the HTML code you added to your pages. If you change the size of the IFrame window edit the "frameheight" variable in the "news_win.htm" to match your new window size. The IFrame size and "frameheight" variable should match so the text re-scrolls from the bottom of the window. The height in the default code is 200.

Restart or scroll again option:
To have the scroller reload at the top for the second time through, change the "frameheight" to "2" and change the "nextdelay" to "1" or "2". If you are re-scrolling set the "nextdelay" to 0. See "Examples" on this support page.

Link targets:
The "news_win.htm" includes two target "_top" sample links. You can use this target or you can use a target="_blank" to target links outside the scroller window.

Multiple scrollers:
You can add as many scrollers to your HTML pages as you need. Use the code above in step #2. Edit the src="news_win.htm" to for example src="news_win2.htm" in one place. Make a copy of the src="news_win.htm" and name it src="news_win2.htm".


Related Topics:
Static IFrames
News Feeds
More Scripts

source: allwebco-templates.com

Read more...

Thanks for visiting my blog, subscribe to my RSS feed. Thanks for visiting!