Case Statement to Color Code Links

Results 1 to 2 of 2

Thread: Case Statement to Color Code Links

  1. #1
    Chrystabel Davis Guest

    Default Case Statement to Color Code Links

    I created an event calendar for five different groups. In my table I have a field for groupname, time ,color event etc. How can I make the groupname and time links in the calendar for each of the different groups different colors?<BR>The page is loacted at http://207.233.157.58/leadership/calendar/calendar/asp

  2. #2
    Join Date
    Dec 1969
    Posts
    309

    Default RE: Case Statement to Color Code Links

    Try:<BR>select case GroupName<BR> case "CA"<BR> GrFontColour = "BROWN"<BR> case "SSQ"<BR> GrFontColour = "GREEN"<BR> case else<BR> GrFontColour = "BLACK"<BR>end select<BR>(and you can put more of course)<BR>then in your link:<BR>&#060;A HREF....&#062;&#060;FONT COLOR="&#060;%=GrFontColour%&#062;"&#062;Link Name&#060;/FONT&#062;&#060;/A&#062;<BR><BR>Is that what you&#039re after?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •