Freaky (freakyweirdo) wrote in component_help,
Freaky
freakyweirdo
component_help

Hello

Two Things:

What is the code to get both standard components and custom components on the same side. And, what is the code to create custom components. =)

Okay, one more ... I guess that makes three, not two.

How do I make my calendar days circular? anchan218 has her calendar days displayed with circles around each day. She has helped me a great deal on this but, the days on the calendar are still square.


This is the first part of the code that I have: I'm not going to post the function YearWeek::print () because when I do, the entire post gets distorted for some reason.

#Creating the mini calendar active background graphic if it is desired
#--------------------------------------------------------------------------------------------------------------------
# Set this to an image source surrounded by \" if a mini calendar active graphic is desired.
# Otherwise set it to "";
#--------------------------------------------------------------------------------------------------------------------
var string cal_active_bg = "\"http://img78.photobucket.com/albums/v281/sincitydreamer/freakymerged.gif\"";
$cal_active_bg = $cal_active_bg ? "background-image: url($cal_active_bg);" : "";

#Setting the mini calendar active background color
var string cal_active = "background-color: $*comp_bgcolor;";

#Creating the mini calendar inactive background graphic if it is desired
#---------------------------------------------------------------------------------------------
# Set this to an image source surrounded by \" if a mini calendar inactive graphic is desired.
# Otherwise set it to "";
#---------------------------------------------------------------------------------------------
var string cal_inactive_bg = "\"http://img78.photobucket.com/albums/v281/sincitydreamer/freakymerged.gif\"";
$cal_inactive_bg = $cal_inactive_bg ? "background-image: url($cal_inactive_bg);" : "";

#Setting the mini calendar inactive background color
var string cal_inactive = "background-color: $*comp_bgcolor;";

#Creating the calendar active background graphic if it is desired
#---------------------------------------------------------------------------------------------------------------
# Set this to an image source surrounded by \" if a calendar active graphic is desired.
# Otherwise set it to "";
# If you wish both the mini calendar and the calendar to have the same background
# (not recommended since their cell size is different), set this to $cal_bg with no quotes at all.
#---------------------------------------------------------------------------------------------------------------
var string ncal_active_bg = "";
$ncal_active_bg = $ncal_active_bg ? "background-image: url($ncal_active_bg);" : "";

#Setting the calendar active background color
var string ncal_active = "background-color: $*calendar_active;";

#Creating the calendar inactive background graphic if it is desired
#-----------------------------------------------------------------------------------------------------------------
# Set this to an image source surrounded by \" if a calendar inactive graphic is desired.
# Otherwise set it to "";
# If you wish both the mini calendar and the calendar to have the same background
# (not recommended since their cell size is different), set this to $cal_bg with no quotes at all.
#-----------------------------------------------------------------------------------------------------------------
var string ncal_inactive_bg = "";
$ncal_inactive_bg = $ncal_inactive_bg ? "background-image: url($ncal_inactive_bg);" : "";

#Setting the calendar inactive background color
var string ncal_inactive = "background-color: $*calendar_inactive;";

"""

""";
}
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments