VoteJs.asp
Upload User: jisenq
Upload Date: 2014-06-29
Package Size: 7216k
Code Size: 1k
Category:

ADO-ODBC

Development Platform:

ASP/ASPX

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
  2. <% Option Explicit %>
  3. <%session.CodePage="936"%>
  4. <%
  5. response.Charset="gb2312"
  6. Dim Steps,TID,Cookie_Domain,OutHtmlID
  7. ''前台页面,由JS调用得到 调用该文件必须给定一些参数.
  8. TID = request.QueryString("TID")
  9. OutHtmlID = request.QueryString("InfoID")
  10. if OutHtmlID = "" then OutHtmlID = "Vote_HTML_ID"
  11. if TID = "" or not isnumeric(TID) then response.Write("document.writeln('内部错误:调用时,TID必须提供.n');"&vbNewLine)
  12. Cookie_Domain = request.Cookies("FoosunMFCookies")("FoosunMFDomain")
  13. if Cookie_Domain="" then 
  14. Cookie_Domain = "localhost"
  15. else
  16. if left(lcase(Cookie_Domain),len("http://"))="http://" then Cookie_Domain = mid(Cookie_Domain,len("http://")+1)
  17. if right(Cookie_Domain,1)="/" then Cookie_Domain = mid(Cookie_Domain,1,len(Cookie_Domain) - 1)
  18. end if
  19. response.Write("<!--"&vbNewLine)
  20. response.Write("//第一次的请求code by awen ueuo.cn网络收藏夹"&vbNewLine)
  21. response.Write("function f_FirstGetVote_awen() {new Ajax.Updater('"&OutHtmlID&"', 'http://"&Cookie_Domain&"/Vote/Index.asp?no-cache='+Math.random() , {method: 'get', parameters: 'TID="&TID&"&InfoID="&OutHtmlID&"' })}; "&vbNewLine)
  22. response.Write("setTimeout('f_FirstGetVote_awen()',200);"&vbNewLine)
  23. response.Write("-->"&vbNewLine)
  24. %>