Respond to this message
Original Message
  • Quick q on the "Good Morning" script
    • Mac (the other one) (no login)
      Posted Feb 8, 2005 6:14 AM

      I've noticed that the "Good Morning/Afternoon/Evening" script when it reads 'nbabauth' from the N54 cookie returns + signs in place of spaces. This means in my case for example that instead of displaying:

      Good Morning Mac (the other one)

      It says:

      Good Morning Mac+(the+other+one)

      Is there some quick tweak that could catch and fix this? I can try to play with it but I have limited free time so thought it may be easier to just post and ask if anyone may already have an idea...

      Here is the existing code snippet:


      <SCRIPT language="JavaScript">
      <!--
      datetoday = new Date();
      timenow=datetoday.getTime();
      datetoday.setTime(timenow);
      thehour = datetoday.getHours();
      if (thehour > 18) display = "Evening";
      else if (thehour >12) display = "Afternoon";
      else display = "Morning";
      var yourname=ReadCookie("nbabauth");
      if ((yourname=="") || (yourname=="Anonymous")){thisname="Guest"}
      else {thisname=yourname};
      document.write("<b>Good " + display + " " + thisname + "</b></font>");
      // -->
      </script>

      Peace, -Mac (the other one)
    Login Status
  • You are not logged in
    • Login
      Password
       

      Optional
      Provides additional benefits such as notifications, signatures, and user authentication.


      Create Account
    Your Name
    Your Email
    (Optional)
    Message Title
    Message Text
    Image Services Photobucket.com
    Options Enable formatted text (Huh?)
    Also send responses to my email address
          


    Find more forums on Personal Web PagesCreate your own forum at Network54
     Copyright © 1999-2009 Network54. All rights reserved.   Terms of Use   Privacy Statement