针对有网友说看不见文章内容, 现提示如下: 点击每一个标题行任一地方都会展开和隐藏此文章内容(不要点击标题). 目前展开隐藏功能只支持IE浏览器,虽然可以改成支持FF浏览器,不过现在一直没时间去弄,等有时间再修改了。 |
blog名称:乱闪Blog 日志总数:267 评论数量:1618 留言数量:-26 访问次数:2659071 建立时间:2005年1月1日 |
|

| |
用Asp+XmlHttp实现RssReader功能
|
演示:http://goaler.xicp.net/RssReader.asp
<style>body {margin:10px;background-color:#ffffff;margin-top:6px;}form{margin:0px;}* {font:12px tahoma;line-height:140%;color:#000000}.title {font-weight:bold;color:red;}.time {font:10px;color:#999999;}a {text-decoration:none;color:blue;}</style><script type="text/javascript">var switcher=0;</script><body ondblclick="if(switcher==0){document.styleSheets[0].addRule('div','display:none');switcher=1}else{document.styleSheets[0].addRule('div','display:block');switcher=0}"><form name="rssform" method=post action="">RSS资源:<INPUT TYPE="text" NAME="RssFeed" size=60 style="height:22px" value="<%=request("RssFeed")%>" onfocus=select()> <input type="submit" value="Read It"> 双击鼠标可以关闭摘要,只显示标题</form><hr/><%If(request("RssFeed")="") Thenurl="/rss2.asp"elseurl=request("RssFeed")End If
Set xml = Server.CreateObject("Microsoft.XMLHTTP")xml.Open "GET", url, Falsexml.Send
Set xmlDom = server.createObject("microsoft.xmldom")xmlDom.async=FalsexmlDom.ValidateOnParse=falsexmlDom.load(xml.responseXML)
if xmlDom.ReadyState>2 Then
set oItem=xmlDom.getElementsByTagName("item")
for i=0 to oItem.length-1 response.write "<span style='font:bold 9px verdana;color:#000000'>"&i+1&"</span>. <a class='title' href='"&oItem(i).childNodes(1).text&"' target='_blank'>"&oItem(i).childNodes(0).text&"</a> <span class='time'>["&oItem(i).childNodes(3).text&"]<br />" response.write "<div>摘要:"&oItem(i).childNodes(4).text&"</div><br>" nextend if%>转自: http://goaler.xicp.net/ShowLog.asp?ID=513 |
|
|