Problem with VALIGN=middle in javascript code

Posted on 2007-07-29
Last Modified: 2012-05-05
Hi guys, I was hoping someone can give me a hand with this problem.
If you have a look at the following page
I need the little table within the cells that says "July message number 1" to be placed in the middle of the row rather than at the bottom.
The javascript code can be found at =
My eyes are getting dreary as I have been working on this for over 16 hours.

I need a second pair of eyes.
Question by:Worldsplayground
    LVL 16

    Expert Comment

    by:Peter Kwan
    You can just remove the " " from the js file:

    224:                        } else if (showMsgBox && i==(lastday+1)) {       // span empty cells to allow messageBox
    225:                              msgSpan = 6 - lastday;
    226:                              document.write("<TD BGCOLOR=" + navColor + " COLSPAN=" + msgSpan +">"); // remove "&nbsp;" from this line
    227:                              DoMsgBox(yearmonth, msgSpan);
    228:                        } else if (!showMsgBox) {

    and see if that works.
    LVL 16

    Accepted Solution

    Also remove the &nbsp; from the following line from the js file:

    205:                        } else if (showMsgBox && i==2) {       // span empty cells to allow messageBox
    206:                              msgSpan = firstday - 1;
    207:                              document.write("<TD BGCOLOR=" + navColor + " COLSPAN=" + msgSpan +">"); // remove "&nbsp;" from this line
    208:                              DoMsgBox(yearmonth, msgSpan);
    209:                        } else if (!showMsgBox) {

    Featured Post

    Training Course: Adobe Dreamweaver CC 2015

    Adobe Dreamweaver Creative Cloud is used by web designers and front-end developers and allows you to visualize your site in real-time as you code. This course covers exam objectives for the Adobe Certified Associate (ACA) certification.

    Join & Write a Comment

    The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
    Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now