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
Drupal4libcamp
February 27, 2009, Darien Public Library, Darien, CT
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.