First off let me say that Drupal is one of the most impressive tools I've ever used and a big thanks to the volunteers who put their valuable time into making this project so great. I have a couple of questions so please bear with me.

First: Is it possible to incorporate Javascript into Drupal, and if so, how? I have two js written that I would like to use in my site. One for the current date and time and the other for a rollover menu (when the mouse "rolls over" a menu item a drop down menu appears). The other script rotates a group of images every x seconds on the main page.

Second: Is it possible to have a different number of columns on pages using the same theme? I would like only 1 column with no sidebars on my main page, but 1 column with 1 sidebar on the remainder of the pages in the site. Also, how can I just create a new page? I'm getting confused between static pages, story pages, and taxonomy information. I just want to create a new page with the same header (which I can figure out) but not sure about the best way to go about it.

Thanks for the help, all - I really do apprieciate it! I'm hoping my site (which will be used for a program in my university) is impressive enough to get more people to see the wonders of drupal, and hopefully by then I'll be informed enough to get them started as well!

Comments

hpotar’s picture

You've probably figured it out by now, but this is for others who may come across this link trying to install javascripts on their sites.

I'm new to drupal as well so there maybe other alternatives besides mine as well. To put javascripts on your webpage, you can locate them in your theme file (the .xtmpl file). Both the function and the call to it.

Of course, your server has to support java, (if you're running your own web server.) If you want the script to function only on one page, I think you may have a problem.. (again, there maybe other solutions that I'm unaware of.) Block management, pages, stories, etc. don't recognize java code. They only recognize HTML and PHP, so you'll get errors if you try it.

I believe modules can also contain java code.. So you can create a module yourself and install it.

In regards to the second question, I don't think I understand what the difference is between sidebar and column. This a good link for the rest of the definitions of terms: static pages, stories, etc. http://drupal.org/node/view/922#1255