Ahhaaaa! Sorry - I'm not so much an SEO newbie, as a forum virgin. ;-)
Mind you, that raises a question or two. Er... where do I check my rep exactly? hehe - seriously, I've no idea.
Also, how long do I stay an SEO junior? Is that a reputation based doofer?
And... to stay on topic, and because I'm interested, how have you used my code? I have a suggestion, which I've implemented on my site:
This is actually not complicated, but might seem it at first glance - trust me, it isn't:
If you want lots of different feeds on different pages of your site, for example, you might have pages that deal with different subjects (or use different keywords at least):
e.g.
Used Cars in Outer Mongolia, plus U2 fan News (I think their big in Asia too)
All you have to do is create an ASP page to handle the RSS news retrieval as in my initial post, and #include that file in the presented page.
However, in the presented page, you must also have a way to pass parameters to the included page, such as session variables.
i.e.
<%
session("topic") = "Used Cars in Outer Mongolia"
session("max")= 5
%>
This would then work with the modified original code thus:
<%
NewsTopic = server.URLEncode(session("topic"))
MaxCount = cint(session("max"))
set mydoc = server.createobject("Microsoft.XMLDOM")
mydoc.setProperty "ServerHTTPRequest", true
mydoc.async = false
mydoc.load("http://news.google.com/news?hl=en&ned=us&ie=UTF-8&q=" & NewsTopic & "&output=rss")
Response.ContentType = "text/html"
set item_root = mydoc.documentElement
set item_nodelist = item_root.getElementsByTagName("item")
count = 0
response.write "<h1>" & session("topic") & "<BR><i>News by Google</i></h1>"
For Each item_elem In item_nodelist
count = count + 1
'** the following is to change the color of an display item
article = replace(item_elem.childNodes.item(4).text, "#6f6f6f", "#FFCCCC")
'** and this prevents the display of any images which screws up my display formatting
article = replace(article, "width=80", "style='display: none;'")
Response.Write article
if count = MaxCount then
exit for
end if
next
%>
et..., voila! You have a news topic for every page of your site whre you want to include it!
You can find an example of this on our site.
It can be a tad more apparant to IE users, if you click to open our Xpress Contact system (But please stop sending us pointless 'I'm testing' messages!).
If you open the Xpress Contact system, you'll find some more of our internal link pages.
At this point, I have to stop and think.... have I given away all our gems yet? hehe... not even close.
Stay tuned...
