%
' ##### Main template constants
MainTemplateHeader = "
"
' #####
' ##### Item template.
' ##### {LINK} will be replaced with item link
' ##### {TITLE} will be replaced with item title
' ##### {DESCRIPTION} will be replaced with item description
' ================================================
Set xmlHttp = Server.CreateObject("MSXML2.XMLHTTP.3.0")
xmlHttp.Open "Get", src, false
xmlHttp.Send()
RSSXML = xmlHttp.ResponseText
Set xmlDOM = Server.CreateObject("MSXML2.DomDocument.3.0")
xmlDOM.async = false
xmlDOM.LoadXml(RSSXML)
Set BlogHeadlines = xmlDOM.getElementsByTagName("title")
Set BlogHeadline = BlogHeadlines.item(0)
for each child in BlogHeadline.childNodes
BlogTitle = child.text
next
Set xmlHttp = Nothing ' clear HTTP object
Set RSSItems = xmlDOM.getElementsByTagName("item")
Set xmlDOM = Nothing ' clear XML
if lines = "0" then
totalFeeds = RSSItems.Length - 1
else
totalFeeds = lines - 1
end if
t_bold = t_s_bold
if t_bold = "y" then
t_bold = "bold"
else
t_bold = "normal"
end if
t_italic = t_s_italic
if t_italic = "y" then
t_italic = "italic"
else
t_italic = "normal"
end if
t_underline = t_s_underline
if t_underline = "y" then
t_underline = "underline"
else
t_underline = "none"
end if
if rt_color = "o" then
t_color = t_color_o
end if
if t_size = "" then
t_size = "8"
end if
if boxpadding = "" then
boxpadding = "0"
end if
if b_color_o = "" then
tbgcolor = b_color
else
tbgcolor = b_color_o
end if
if rb_b_weight = "s" then
rb_b_weight = b_b_weight
else
rb_b_weight = b_b_weight_o
end if
if rb_b_color = "s" then
rb_b_color = b_b_color
else
rb_b_color = rb_b_color_o
end if
mq_style = "scroll"
if t_s_marquee = "y" then
title_mq = ""
else
title_mq = ""
title_mq_end = ""
end if
if mq_height = "" then
mq_height = i_size
end if
if totalFeeds > 0 then
if mq = "y" then
Response.Write ""
end if
else
Err = "Error: Feed failed! Causes may be (1) No data found for RSS feed $src; (2) There are no items are available for this feed; (3) The RSS feed does not validate.
Please verify that the URL " & src & " works first in your browser and that the feed passes a validator test.
"
Response.Write Err
End If
%>