Print Page | Close Window

Different field colours

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=16903
Printed Date: 29 March 2026 at 7:05am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Different field colours
Posted By: sccs
Subject: Different field colours
Date Posted: 13 October 2005 at 10:51am
I am setting up a lesson booking form and calendar using ASP and a database and want to be able to have different colours for events on the calendar. The submit booking form has 5 locations for each lesson. CLC, Maths, Science, Music and Other. Each one needs to be in a differnet colour.
Is this possible?Disapprove



Replies:
Posted By: michael
Date Posted: 13 October 2005 at 1:18pm
Yes.
 
Now without know how you do it, it will be hard to explain but essentially you'd something like
Select Case locations
 Case "CLC"
      'Switch whatever color as required
  Case "Math"
       ..........
End Select


-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: sccs
Date Posted: 14 October 2005 at 4:10am
You have lost me there. Could you give me a better example.
Thanks


Posted By: dpyers
Date Posted: 14 October 2005 at 3:41pm
I think we'd need to know a little more about how you're trying to do it as there's about a dozen ways to implement something like this. A short code example of how a date/event is actually displayed by your app would help.

In michaels example, locations is a string that contains a value that indicates what type of event you're dealing with at the moment. For different event values, you write different html background values or specify a different css class for the background. You would probably do this differently depending upon how the event is displayed - table, css box, paragraph, etc. Might also depend upon if you are using an array of days in the month.


-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net