QUOTE(totlcomp @ Jun 16 2008, 07:11 AM)
I remember seeing a post that detailed how to determine if a user was logged into the website, and if they were, change the text from Login to Logout.
I've search the forums relentlessly and can't find the post for the life of me and it's driving me nuts. Does anyone know how to do this?
Hey Totalcomp! I hope you are doing fine... This is the one I have in my site... I hope it helps...
Let me know if you have any trouble with it and I'll try to help you out...
<div align="right">Welcome <%DRAWCUSTOMERWELCOME%> |
<a href="index.asp?PageAction=LOGIN">Login</a> |
<a href="index.asp?PageAction=MYACCOUNT">My Account</a></div>
for(i=0; i<j.length; i++)
if(j[i].href.match(/Login/i) && document.getElementById('CustomerName').title!='Guest')
You can enter the script at the bottom of you page...
You need to have the <%DRAWCUSTOMERWELCOME%> in the page, and the Login as well for this to work