Reply to comment

Jquery

I have CSS and Javascript optimization turned on, which happens to make the source code really hard to read. Here is the code:

Drupal.behaviors.blockToggle = function(context){  $('.toolsmaster', context).hide();  $('#librarytools', context).click(function() { $('.toolsmaster', context).slideToggle(); return false; })}

It can be found in this file, which is included in the head of each page : http://library.drake.edu/sites/default/themes/cowles/tools.js

The first line (ok, well 2nd line) takes the container div ("toolsmaster"- probably not the best name) for the list of library tools and hides it. The next line slides that container div up and down when the link "librarytools" is clicked.

Hope that helped. Let me know if you have more questions.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.