Results 1 to 2 of 2

Thread: Different text colour for different event types in diary

  1. #1
    Join Date
    Jul 2012
    Location
    Dorset, England
    Posts
    65
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question Different text colour for different event types in diary

    With lots of help by John and some others last year, I've had my event diary working really well in Dorsetdog.com

    But I'd now like it to show one colour of text for dog shows and a second / different colour for Sponsored dog walk events

    How would I set a "type 1" "type 2" sort of code into the Calendar JS and distinguish them in the event JS files

    http://www.dorsetdog.com/diary-of-dog-shows

    I've attached the three files for the diary

    calendar.css

    calendar.js

    events.js

    Many thanks

    Mark
    Last edited by Mark Ellis; 04-10-2013 at 11:15 PM.

  2. #2
    Join Date
    Jul 2012
    Location
    Dorset, England
    Posts
    65
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Cool

    Sorted. Found that I can just format the text

    '<span style="color: white; background-color: green; padding: 5px; radius: 15px;">Sponsored walk</span>',

    calendar.css

    calendar.js

    events.js

Similar Threads

  1. From that changes all text colour on site.
    By spamburger in forum Looking for such a script or service
    Replies: 12
    Last Post: 01-16-2011, 03:46 PM
  2. Looking for a diary
    By studio17 in forum Looking for such a script or service
    Replies: 4
    Last Post: 06-15-2010, 09:57 AM
  3. rieving image types/mime types
    By JShor in forum PHP
    Replies: 3
    Last Post: 08-24-2008, 08:03 PM
  4. Problems with space between text types
    By poliking in forum CSS
    Replies: 1
    Last Post: 10-11-2007, 09:48 AM
  5. Default Text Colour
    By Calista in forum CSS
    Replies: 2
    Last Post: 09-19-2006, 03:36 PM

Bookmarks

Posting Permissions

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