Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14318 reviews 1707 hosting providers

Questions & Answers

Adding JavaScript Calendar in a new block in drupal

May 30, 2012 by meera-b
Hi all,
I want to add an inline calendar based on Dynarch Calendar, which is a JavaScript code. I have just created a new block and I  want to add the JavaScript calendar to it. Can someone please tell me how to do this
Any help would be appreciated

1 Answer

0 votes
May 30, 2012 by TopNet
his is how you do it
1.Download the latest (JSCal2-1.7.zip) and extract it.
2.Copy the ‘CSS’ and  the ‘JS’ directory from ‘SRC’ directory to your web application directory.
3.in the HEAD part of your HTML file, Include your preferred theme ‘css’ file, your preferred language, jscal2.css, and border-radius.css .

Note:If the CSS or Javascript apply to all your pages,you can be add to the themes .info file or  you can add them from with  custom module using drupal_add_js()/ drupal_add_js()