사용 방법 : 다음 코드를 rss.asp로 저장하고 (UTF-8 형식으로 저장해야 함) 웹 사이트 루트 디렉토리에 업로드하십시오. 나머지는 피드 주소를 제출할 RSS 제출 포털을 찾아 http : // 도메인 이름/rss.asp입니다.
데모 : http://www.366mv.cn
코드는 다음과 같습니다. 의견에 따라 해당 정보를 수정하십시오. 저작권 정보를 유지할 수 있기를 바랍니다 ^_ ^
코드 사본은 다음과 같습니다.
<%@language = "vbscript"CodePage = "65001"%>
<%
세션 .codepage = 65001
response.charset = "utf-8"
'========================================================================================================
'Copyright (C) 2005-2007, 대두 Liuyu 영화 및 텔레비전 ([url] www.366mv.cn [/url]) Allrights Reserved.
'========================================================================================================
'이름 : rss.asp
'설명 : RSSFEED를 동적으로 생성합니다.
'========================================================================================================
%>
<!-#includefile = inc/conn.asp-> <? xmlversion = "1.0"encoding = "utf-8"?>
<rssversion = "2.0"xmlns : atom = "http://www.w3.org/2005/atom">
<%
title = " '"'는 자신의 이름으로 변경되었습니다
response.write "<channel>"& chr (13)
response.write "<atom : linkhref =" "http : //"& maxz_2 & "/xml.asp" "rel =" "self" "type =" "Application/rss+xml" "/>"& chr (13)
response.write "<title> 최신 업데이트 된 비디오-"& Title & "</title>"& chr (13)
response.write "<link> http : //"& maxz_2 & "</link>"& chr (13)
Response.write "<cression>"& title & "-온라인으로 10 만 영화를보십시오. 무료 영화, 온라인 영화, TVB, 일본 드라마, 한국 드라마, 애니메이션, 공상 과학, 공포, 로맨스, TV 시리즈, 블록버스터, 새해 영화 ... </description>"& chr (13)
response.writeget_left (15,0) '업데이트 날짜별로 정렬 된 첫 15 개의 비디오를 보여줍니다
response.write "</channel>"& chr (13)
functionre (str)
그런 다음 ifnotisnull (str)
re = replace (str, "&", "&")
re = replace (re, "<", "<")
re = replace (re, ">", ">")
re = replace (re, " '", "" ")
re = replace (re, "" "", "" ")
endif
최종 기능 장애
functionget_left (n, m)
n = cint (n) : m = cint (m)
ifm = 1then
mm = "OrderByZt_hitsDesc" '는 클릭으로 정렬됩니다
또 다른
MM = "OrderByZt_datedEsc" ''업데이트 날짜별로 정렬되었습니다
endif
setrs1 = conn.execute ( "selecttop"& n & "zt_id, zt_name, zt_zy, zt_dy, zt_type, zt_date, zt_hits, zt_contentfromzt_data"& mm)
get_left_i = 0
dowhilenotrs1.eof