많은 네티즌은 JS 뉴스 콜 프로그램을 만드는 방법을 물었고 이제는 참조를 위해 게시됩니다.
JS 통화 프로그램 :
list2.asp
Source code:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<!-#includefile = "conn.asp"->
<%
DIMRS, SQL
DimSpecid '리소스 기능 ID
Seccid = clng (요청 ( "Seccid"))
sql = "selecttop10id, title, filepathfromview_newsinfowhereinstr ( ','+specity+',', ',"& sectid & ",') <> 0orderByIddesc"
setrs = conn.execute (SQL)
whilenotrs.eof
response.write "document.write (" "<ahref = '/tsys/newsfiles/"& rs ( "filepath") & "'target = '_ blank'>"& rs ( "title") & "</a> <br/>" ")"& vbcrlf
rs.movenext
향하게 하다
Rs.Close
setrs = 아무것도
%>
-----------------------------------------------------------------------------------------
통화 방법 :
Source code:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<scriptsrc = "list2.asp? sectid = 13"> </script>
-----------------------------------------------------------------------------------------
설명하겠습니다 ..... 위는 TSYS1.0입니다 ...
아래는 나에 의해 쓴 TSYS1.1의 향상된 버전입니다.
<!-#includefile = "include/config.asp"->
<%
DIMRS, SQL
DimSpecid '리소스 기능 ID
Seccid = clng (요청 ( "Seccid"))
디콘
setconn = server.createobject ( "adodb.connection")
conn.openconnstr
sql = "selecttop10id, title, filepathfromview_newsinfowhereinstr ( ','+specity+',', ',"& sectid & ",') <> 0orderByIddesc"
setrs = conn.execute (SQL)
whilenotrs.eof
response.write "document.write (" "<ahref = '"& rs ( "filepath") & "'target = '_ blank'>"& rs ( "title") & "</a> <br/" ")") "& vbcrlf
rs.movenext
향하게 하다
Rs.Close
setrs = 아무것도
conn.close
setconn = 아무것도 없습니다
%>
포함/config.asp를 볼 때 누구나 저장해야 할 곳을 알아야합니다.
데모를 볼 수 있습니다.
http://31u.net/html/zhuanti/daima005.htm
통화는 www.31u.net 홈페이지의 권장 정보입니다 ...이 기능은 35입니다.
물론, 당신은 이것을 기반으로 하위 컬럼에 대한 JS 뉴스 목록을 작성할 수 있습니다 ... from31u.com