www.gusucode.com > 全球营销软件站整站源码4月最新数据 4.0源码程序 > 801wyxqf\ask\script\user.asp
<!--#include file="const.asp"--> <% Response.ContentType="text/html" Response.Expires = -9999 Response.AddHeader "pragma", "no-cache" Response.AddHeader "cache-ctrol", "no-cache" Dim sex %> var str = ''; sitePath = '<%=NewAsp.InstallDir%>'; var userid = <%=NewAsp.UserID%>; <% If NewAsp.UserID > 0 Then If NewAsp.UserSex = 0 Then Response.Write "var usersex='female';" Else Response.Write "var usersex='male';" End If %> str += '<i class="'+usersex+'">欢迎</i>';//male female str += '<b><a href="'+sitePath+'UserAsked.asp"><%=NewAsp.UserName%></a></b>'; str += '\n| <a href="'+sitePath+'UserCenter.asp">个人中心</a>\n| <a href="'+sitePath+'logout.asp?ReturnURL=' + window.location.href + '">退出</a>\n'; <%Else%> str += '<a href="#" onClick="openWindow(\''+sitePath+'login.asp?action=login&ReturnURL=' +window.location.href + '\',420,220,\'用户登录\'); return false" class="UserLogin">用户登录</a>\n'; str += '<a href="'+sitePath+'register.asp?ReturnURL=' +window.location.href + '" class="UserReg">用户注册</a>\n'; str += '<a href="#" class="findPs">找回密码</a>\n'; <% End If NewAsp.CloseConn() %> var element = document.getElementById('loginZone'); if(typeof(element)=='object') element.innerHTML = str;