Scriptcalendar.com
An Incredible Javascript Event Calendar

User Guide

»  Table Of Contents

Adding a HTML to an Event

Section 3.2.6

The 4th parameter of the fscEvent function is a string of text to appear in the specific date cell. This is called the EventText parameter. The string value may contain HTML tags.

For example, to place an image in the date cell for January 1st 2010, use the following code.

fscEvent( 1, 1, 2010, "preceeding text <img src='myimage.gif'>");

Please note that the linked file must be enclosed with single quotes. Double quotes are already used to enclose the text string itself.

Any HTML tags can be used. For example, to place a hyperlink in the date cell for January 1st, 2010, use the following code.

fscEvent( 1, 1, 2010, "the <a href='http://www.yahoo.com'>hyperlink</a>.");

»  Table Of Contents