soundcompanies
Perch
I'm working with (not on) an ASP based auction system (XCAuction) and the client is asking me to do some customization.
Thier chosen template style has the navagation at the bottom of ever page (?????) but they would like it at the top as well. The problem, for me, arises because I cannot just include the ASP script that creates the the bottom menu in the top menu because the header template is strictly html.
Now, I could go into every single template page of the system and add the ASP before or after the header, but that would take weeks and be just ugly.
The good thing: The menu has only three choices; main menu, auction help, and login/logout. The ASP script just handles the login/logout decision by reading the cookie (or lack their of)
The bad thing: I know zero javascript! I would run out and buy a book (actually I already have one) but I don't have time. Any help would be great.
All I need to do is read the cookie and then have the html display the login or logout link depending on what it finds.
This is as far as I have gotten trying to use an example from a javascript site
I really have no idea what any of that means.
Can anybody give me a shove?
Thanks,
Brent
Thier chosen template style has the navagation at the bottom of ever page (?????) but they would like it at the top as well. The problem, for me, arises because I cannot just include the ASP script that creates the the bottom menu in the top menu because the header template is strictly html.
Now, I could go into every single template page of the system and add the ASP before or after the header, but that would take weeks and be just ugly.
The good thing: The menu has only three choices; main menu, auction help, and login/logout. The ASP script just handles the login/logout decision by reading the cookie (or lack their of)
The bad thing: I know zero javascript! I would run out and buy a book (actually I already have one) but I don't have time. Any help would be great.
All I need to do is read the cookie and then have the html display the login or logout link depending on what it finds.
This is as far as I have gotten trying to use an example from a javascript site
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function ReadCookie(cookieName) {
var theCookie=""+document.cookie;
var ind=theCookie.indexOf(cookieName);
if (ind==-1 || cookieName=="") return "";
var ind1=theCookie.indexOf(';',ind);
if (ind1==-1) ind1=theCookie.length;
return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}
</script>
</head>
<body>
<A HREF="XUDLogout.asp">Logout</A>
<br>
<A HREF="XUDLogin.asp">Login</A>
I really have no idea what any of that means.
Can anybody give me a shove?
Thanks,
Brent