Richer content experience for your visitors.

 
by Frank Luna.

As rather often hosting servers set restrictions regarding the type of applications and scripts you can place on your site and web pages, we need to find ways to get the most out of the resources at hand.

An example of this situation may be the setting up of a xml script that reads feeds from a particular source.

As a first solution, we could simply place a javascript code that will display whichever information the feed is about.

I have included a <NOSCRIPT> section for those whose browsers do not support javascript language.



The above example will display the titles and a short description on the subject (in this case, articles). However, even though this method will automatically update by itself (As long there is something to be updated) it will not be content read for search engine crawlers. But, it will add as another service for your visitors.

On the next example I have used an <Iframe>. This method allows any content to appear seamlessly on your page thus keeping your site name, menus, layout and theme prominently in front of your visitor. You may set the width and height that is best for your page layout.



The next and last example is a quite useful script that you may want to try. It will change everytime your page is refreshed, therefore, offering different content to visitors on each occasion. There is no limitations about the number of scripts you can place on your pages but using too many could affect the loading time of your site.


Example:



The above script offers great flexibility and you can even use html within the code. However, instead of double quotation marks (") you must use a single one (') e.g: <a href='http://domain/' target=_'blank' title='something'>domain</a>. All content must be enclosed within double quotation marks.

With a bit of creativity, you could use any of the above methods to offer your visitors a richer content experience. I hope you find them useful as I have.

Copyright © Frank Luna
Web solutions, scripts and useful applications
at http://www.zubaga.com

You can publish the above article on your own web site. Just make sure that you don't change the content in any way. All links must remain intact, including the author's byline and links.