troubleshooting Question

Calendar Help

Avatar of jabronicus
jabronicus asked on
Web Servers
4 Comments1 Solution176 ViewsLast Modified:
For this particular calendar usually there is one event per day and never more than two events per day.  This is a preview calendar on my home page that gives tooltips when scrolled over.  I don't want to make it any bigger than it already is.  When I have more than one event per day the day is shown twice which of course causes some layout issues.

Do you know of any creative ideas that I can get around this one.  


<cfoutput>
  <!---Calendar Days Begin--->
      <tr>
        <cfloop from="1" to="7" index="i">
          <td><cfif nCounter GTE nFirstDayOfMonth AND nDayOfMonth LTE nDaysInMonth>
              <table cellspacing="0">
                <tr>
                  <td align="center"  class="date"><cfset hit = 0>
                    <cfloop query="concerts">
                      <cfif Day(concerts.DateTime) EQ nDayOfMonth>
<a class="DateofEvent" href="EventDetails.cfm?concertid=#concerts.ConcertID#&amp;programid=#concerts.ProgramID#" onMouseover="showtip(this,event,'#concerts.Title#, #LSTimeFormat(concerts.DateTime)#')" onMouseout="hidetip()">#nDayofMonth#</a>                      
<cfset hit = 1>
                      </cfif>
                    </cfloop>
                    <cfif hit eq 0>
                      #nDayofMonth#
                    </cfif>
                  </td>
                </tr>
              </table>
              <cfset nDayOfMonth = nDayOfMonth + 1>
            </cfif>
            <cfset nCounter = nCounter + 1 />
        </cfloop>
      </tr>
            </cfloop>
      <!---Calendar Days End--->
   
  </table>
</cfoutput>
ASKER CERTIFIED SOLUTION
gdemaria

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros