How to make calendar automatically display special events

hi, i wanted to make my calendar automatic display the events in a specific month. should i use ifelse statement or switch case statement? my web site have display calendar for the current month. it aotumatically update. now i wanted to highlight the special event on that month like New Year, Christmas etc. it automatically change the event according to the month. when it comes to May, it won't display April event but May event such as Labour Day. this is the example, what i wanted it to be is the event date changes according to the month.
<html>
<head>
<title>Brunsfield e-Homes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="home.css">
<style type="text/css">
.main {
width:130px;
border:0px solid #8D549B;
border-collapse:collapse;
.month {
background-color:#8D549B;
font:bold 11px arial;
color:white;
border-collapse:collapse;
border:0px solid #8D549B;
.daysofweek {
background-color:#C78FB9;
font:bold 9px arial;
color:#000000;
border-collapse:collapse;
border:0px solid #8D549B;
.days {
font-size: 9px;
font-family:arial;
color:black;
background-color: #FADBF2;
padding: 1px;
border-collapse:collapse;
border:0px solid #8D549B;
.days #today{
font-weight: bold;
color: #cc0000;
border-collapse:collapse;
border:0px solid #8D549B;
</style>
<script type="text/javascript" src="basiccalendar.js">
* Basic Calendar-By Brian Gosselin at http://scriptasylum.com/bgaudiodr/
* Script featured on Dynamic Drive (http://www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="5" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false">
<!-- ImageReady Slices (home.psd) -->
<div style="position:absolute; left:0; top:64">
<table>
<td width="140" align="center" valign="top">
     <font size="1">eCalender</font>     
     <script type="text/javascript">
     var todaydate=new Date()
     var curmonth=todaydate.getMonth()+1 //get current month (1-12)
     var curyear=todaydate.getFullYear() //get current year                         
     document.write(buildCal(curmonth ,curyear, "main", "month", "daysofweek", "days", 1));
</script>
</td>
</table>
<table width="130" align="center" border="0" bgcolor="#FDC2D6">
<tr>
     <td class="events" width="20" align="center">1</td>
     <td class="events" align="left">April Fools Day</td>
     </tr>
     <tr>
     <td class="events" width="20" align="center">4</td>
     <td class="events" align="left">Ching Ming Festival</td>
     </tr>
     <tr>
     <td class="events" width="20" align="center" valign="top">8</td>
     <td class="events" align="left">Birthday of Sultan Johor</td>
     </tr>
     <tr>
     <td class="events" width="20" align="center">9</td>
     <td class="events" align="left">Good Friday</td>
     </tr>
     <tr>
     <td class="events" width="20" align="center">11</td>
     <td class="events" align="left">Easter Sunday</td>
     </tr>
     <tr>
     <td class="events" width="20" align="center" valign="top">19</td>
     <td class="events" align="left">Birthday of Sultan Perak</td>
     </tr>
     <tr>
     <td class="events" width="20" align="center">22</td>
     <td class="events" align="left">Earth Day</td>
     </tr>
     <tr>
     <td class="events" width="20" align="center">25</td>
     <td class="events" align="left">Secretary Day</td>
     </tr>
</table>     
</body>
</html>

http://www.dotjonline.com/main/index.jsp?url=/taglib/calendar/calendarFixed.jsp

Similar Messages

  • How to make SAPScript to display special character?

    Hi all, 
            How to make SAPScript to display special character like character in 'Wingdings 2' font type? Now, I cant make SAPScript to display those special characters in the font type.
    Best Regards,
    Chee Boon

    Hi,
    Insert your font with SE73.
    Then set in sapscript with paragraph or character format so that yoyur charracter is printed with the font you wanted.
    Gr., Frank

  • How do I make Firefox automatically display my homepage when opening a new tab (instead of a blank page now)?

    How do I make Firefox automatically display my homepage when opening a new tab (instead of a blank page now)?
    (version 3.6.6 on a Windows7 64-bit rig)

    If you are using the latest version of firefox you dont need an addon simply change it in the config
    http://computerlearnhow.com/how-to-change-the-firefox-new-tab-homepage-to-something-useful/#.T6om38USU4k

  • The Header in my home page is truncated. My home page Header is cut off. The header appears in Internet Explorer, but not in Mozilla Firefox 3.6.13. How to make the header display in Firefox?

    The Header in my home page is truncated. My home page Header is cut off. The header appears in Internet Explorer, but not in Mozilla Firefox 3.6.13. How do make the header display?

    (Images or animations do not show) worked well.

  • How to make calendar wider?

    I need to make the APEX month-calendar display wider so that I can cram more text into the day cells. The "Calendar" template is listed in: APEX > Shared Components > Templates.
    I probably just need to change the style sheet. I found the following classes listed in: APEX > Shared Components > Templates > Edit Calendar Template:
    <table class="t5CalendarHolder">
    <table class="t5Calendar">
    <div class="t5DayTitle">
    <td class="t5Day">
    But CSS Finder did not find any of these classes. So now I am asking for your help. How to make the calendar wider?
    Thank you.

    The themes that I've found to be the most user modifiable are Black, White, Formal, Modern and Modern Frame. They don't use image files that limit the size of the page. I will select the one of those 4 based on the color of the navbar text so it is most visible with the design of the site.
    OT

  • How to make create, edit, display form in a page fragment ?

    Hello everyone,
    I have a problem when I want to make create, edit,display in a page.
    Ok let's say we have created two pages,
    In page A we have 3 buttons, CreateEmp, EditEmp and DisplayEmp button and one text field as a parameter field to edit and display (let say employeeId).
    In page B we have form employee to create new employee, edit employee and display and a button AddMoreEmp (to add more employee without back to page A)
    in this case if button EditEmp is pressed in page A, so button AddMoreEmp in page B will be enabled
    if button DisplayEmp in page A is pressed , so button AddMoreEmp in page B will be disabled.
    Thanks in advance,
    samantha

    I think what you are looking for is a comb field. It acts like a regular field but puts the vertical lines in between each character. You can turn the comb on in the object palette and indicate how many chars will appear in the field (so that it knows how many lines to draw).
    Paul

  • How to make tv as display, wireless-mac bk pro-2yr old tv?

    how do i make tv as display, wirelessly -mac bk pro 2009- and samsung 40'' 650t tv 2yr old,

    you need this for one thing http://www.amazon.com/Samsung-WIS09ABGN-LinkStick-Wireless-Adapter/dp/B0021LA1BE
    or if your tv is near your router you should just plug it in directly via ethernet cat6.
    further reading about your tv and how it connects to stream content is needed.

  • How to make view automatically scroll when keyboard show up

    Hi all
    I'm like a totally noob for objective-c coding, let alone the iPhone programing. :P
    Anyway, I somehow manage to create a simple application that receive input via UITextField, do some simple math, then display the result in other UITextFields (which can act as a input vice versa).
    Problem is, when I use the UITextField at the buttom of the screen as an input, the keyboard will block that text field out of my view, so I could not see what I'm typing at all.
    That's the question. How to make my view scrollable, and make it simply scroll itself out of the way when the keyboard is shown? I already inherit my view from UIScrollView, but don't know what to do next. Can you guys help enlighten me, please?
    Thanx

    Of course, if you're dealing with textFields, you should change a few things try something like that in your .m file :
    - (void)textFieldDidBeginEditing:(UITextField *)theTextField
    if ([theTextField isEqual:yourTextField])
    // Restore the position of the main view if it was animated to make room for the keyboard.
    if (self.view.frame.origin.y >= 0)
    [self setViewMovedUp:YES];
    // Animate the entire view up or down, to prevent the keyboard from covering the author field.
    - (void)setViewMovedUp:(BOOL)movedUp
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.3];
    // Make changes to the view's frame inside the animation block. They will be animated instead
    // of taking place immediately.
    CGRect rect = self.view.frame;
    if (movedUp)
    // If moving up, not only decrease the origin but increase the height so the view
    // covers the entire screen behind the keyboard.
    rect.origin.y -= kOFFSETFORKEYBOARD;
    rect.size.height += kOFFSETFORKEYBOARD;
    else
    // If moving down, not only increase the origin but decrease the height.
    rect.origin.y += kOFFSETFORKEYBOARD;
    rect.size.height -= kOFFSETFORKEYBOARD;
    self.view.frame = rect;
    [UIView commitAnimations];
    - (void)keyboardWillShow:(NSNotification *)notif
    // The keyboard will be shown. If the user is editing the author, adjust the display so that the
    // author field will not be covered by the keyboard.
    if ([yourTextField isFirstResponder] && self.view.frame.origin.y >= 0)
    [self setViewMovedUp:YES];
    else if (![yourTextField isFirstResponder] && self.view.frame.origin.y < 0)
    [self setViewMovedUp:NO];
    #pragma mark - UIViewController delegate methods
    - (void)viewWillAppear:(BOOL)animated
    // watch the keyboard so we can adjust the user interface if necessary.
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:)
    name:UIKeyboardWillShowNotification object:self.view.window];
    - (void)viewWillDisappear:(BOOL)animated
    [self setEditing:NO animated:YES];
    // unregister for keyboard notifications while not visible.
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];
    be sure to invoke the method when you dismiss the keyboard, so that the view "falls back" to its normal state:
    if (self.view.frame.origin.y < 0)
    [self setViewMovedUp:NO];
    Of course, declare the method
    (void)setViewMovedUp:(BOOL)movedUp;
    in the .h file
    and the #define you will use in you .m file :
    // the amount of vertical shift upwards keep the text field in view as the keyboard appears
    #define kOFFSETFORKEYBOARD 50.0
    // the duration of the animation for the view shift
    #define kVerticalOffsetAnimationDuration 0.30
    good luck !

  • How to make Finder automatically go to the foremost open window?

    I hope I'm explaining this clearly.
    Suddenly, when I click on the Finder from the Dock, it does not go to the last open window. I have to go to the Windows menu and select it, or click and wait on the Finder icon in the dock for it to open. I usually have a lot of apps open so when I go to Finder it's to do some file management - and the extra step of having to bring the last open window to the forefront is annoying me!
    Does anyone know how to make the Finder automatically come to the forefront (with the windows) from click in the Dock? I swear my mac always did that before but now it's stopped!

    can anyone help me here?

  • How to make frame automatically size

    Hi,
    I'm developing a dialog using JFrame , but i'm setting the size of it.Is it possible to make it automatically size as and when i add compoments.
    thanks
    Raj

    use pack().
    Ashish

  • How to make calendar adds without siri

    how do i manually add calendar events without siri???

    Hi,
    According to your description, it seems to be jquery issue. So I suggest that you can post it in asp.net forum where you can get better answers.
    http://forums.asp.net/
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I restore automatic display & selection of addresses of contacts when I type the first letter on my Yahoo addressee bar?

    When filling out the addressees (T0, Cc, and Bcc bars) on a new mail in Yahoo, I would type the first few letters of each addressee, and get a display of the names and e-mail addresses starting with those letters. I would simply highlight the ones I wanted to include, and these would be automatically placed on the corresponding bar. For some reason, this display/autotext is not functioning. So I now have to go to "Contacts" to look up addresses that I haven't memorized.

    Hi Silky-Milky!
    If I understand your question correctly, you are attempting to merge your contacts from your previous phone's backup into your iCloud account, then go back to using your new phone as normal, with the new merged database of contacts. I have an article that can tell you how to do exactly that:
    Recovering iCloud or MobileMe data from iTunes backups for an iOS device
    http://support.apple.com/kb/TS4108
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • How to make the hours display in the payslip,

    For one wagetype the hours are displayed in payslip, the country grouping is US. how to resolve this?
    Thanks
    Karthik

    You mention that for "one wagetype the hours are displayed in payslip", implying that the (number of) hours are not displayed for the other WTs.
    First, check in the RT if hours exist only for that WT or for all other WTs.
    If hours exist only for that WT in RT, then you should check where in your Payroll Schema the hours are deleted from the other WTs (or where the hours are added for this WT), and make the appropriate corrections.
    If the hours exist for all earnings WTs, then the problem should be in the Line Type that is used to display that WT in the Payslip/Remuneration Statement.  Use t-code pe51 to compare that WT with a similar one, and make the appropriate correction.

  • How to make Reports 9i display Danish national characters?

    I am running Oracle9i Reports and cannot make Reports print the Danish national characters f, F, x, X, e and E. I have a development machine with Developer Suite 9.0.2, where I can run the report in Paper Design, where the characters displays correctly, but as soon as they are uploaded to the Application Server (9.0.2), all of the national characters are replaced with some very mysterious characters. The dev. machine and the Oracle9iAS machine both connect to the same database, and when I make a boilerplate object just containing "FXE", the problem is still there, so it does not seem to be a database issue.
    I read some articles on MetaLink about adding some lines in uifont.ali, but they do not seem to apply, since the article only mention East-European languages (Polish and Czech). The font used is Times New Roman. The dev. machine has NLS_LANG set to AMERICAN_AMERICA.WE8MSWIN1252, and the Oracle9iAS machine is running DANISH_DENMARK.WE8MSWIN1252 - ie. the same character set. I tried to generate the report both to HTML and PDF, but that did not make any difference regarding this issue.
    How do I make Oracle9i Reports Services display the Danish national characters correctly?
    Thanks in advance!

    Thanks for your suggestions.
    However, here's what I've done, and it did not make any difference.
    1. Changed the NLS_LANG parameter to match on both server and dev. machine and recompiled and saved the RDF - no difference.
    2. Installed the same model printer on the server, as the one on the development machine, and rebooted the server - no difference.
    3. Checked uifont.ali on both systems - they're exactly the same...
    What else might be causing this?

  • How to make an automatic percentage with a catégory

    Hello,
    Thank you if you answer to my problem and also if you know the response !
    So, I have 3 cells :
    -A : with the category (lets make category game, food and books..)
    -B : the price
    -In C : I would like numbers to calculate automatically the cost with percentage (B x30%) if the category is "game", or B x 40% if the category is food, etc...
    Is it possible in one formula ? And also if I have about 10 categories...?
    Now, I know this formula wich is working only for one category, but I don't know how to add the variable about the category :
    sumif (A;book;B)*30%
    For example I would like in the same formula :
    sumif (A;book;B)*30% or (A;game;B)*40% .....
    With this formula, each time I will make a new entry in A with for example "book", and the price in B, the cell C will be automatically fill with the good percentage.
    I hope someone know the answer.
    Thank you very much.

    Hello
    I repeat that all what is needed is in the guide.
    =SI(ESTERREUR(RECHERCHEV(A;rates :: $A:$B;2;0));"";ARRONDI(B*RECHERCHEV(A;rates :: $A:$B;2;0);2))
    =IF(ISERROR(VLOOKUP(A,rates :: $A:$B,2,0)),"",ROUND(B*VLOOKUP(A,rates :: $A:$B,2,0),2))
    Here it returns an empty string if the category is unavailable.
    If you want a true zero, use:
    =SI(ESTERREUR(RECHERCHEV(A;rates :: $A:$B;2;0));0;ARRONDI(B*RECHERCHEV(A;rates :: $A:$B;2;0);2))
    =IF(ISERROR(VLOOKUP(A,rates :: $A:$B,2,0)),0,ROUND(B*VLOOKUP(A,rates :: $A:$B,2,0),2))
    Yvan KOENIG (from FRANCE samedi 1 août 2009 23:04:53)

Maybe you are looking for