FocusLoad.asp
资源名称:1.rar [点击查看]
上传用户:yrf020
上传日期:2007-07-24
资源大小:1287k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <%
  2. dim rs,ADsName,ADsWidth,ADsHeight
  3. set rs=server.CreateObject("adodb.recordset")
  4. rs.open "select top 1 * from CompanyCMS_Ads where ViewFlag"&Language&" order by id desc",conn,1,1
  5. if rs.bof and rs.eof then response.end
  6. ADsName=rs("ADsName"&Language)
  7. ADsWidth=rs("ADsWidth")
  8. ADsHeight=Rs("ADsHeight")
  9. rs.close
  10. set rs=nothing  
  11. %> 
  12. <HTML>
  13. <HEAD>
  14. <TITLE></TITLE>
  15. <META http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <script> 
  17. function OpenWin(){
  18.   window.open("FocusView.asp","<%=ADsName%>","width=<%=ADsWidth%>,height=<%=ADsHeight%>")
  19. function getCookie(Name){
  20.   var search = Name + "=" 
  21.   var returnvalue = ""; 
  22.   if (document.cookie.length > 0){ 
  23.     offset = document.cookie.indexOf(search) 
  24.     if (offset != -1) { 
  25.       offset += search.length 
  26.       end = document.cookie.indexOf(";", offset); 
  27.       if (end == -1) {
  28.         end = document.cookie.length; 
  29.         returnvalue=unescape(document.cookie.substring(offset,end)) 
  30.       } 
  31.     } 
  32.     return returnvalue; 
  33.   } 
  34. }
  35. /*
  36. function LoadPopup(){ 
  37.   if (get_Cookie('popped')==''){ 
  38.     OpenWin() 
  39.     document.cookie="popped=yes" 
  40.   } 
  41. */
  42. function LoadPopup(){ 
  43.   OpenWin() 
  44. </script> 
  45. </HEAD>
  46. <BODY  onload="LoadPopup()">
  47. </BODY>
  48. </html>