06.05.2013 Views

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Integrating <strong>and</strong> Extending<br />

<br />

<br />

<br />

<br />

<br />

Search<br />

<br />

<br />

<br />

<br />

<br />

<br />

In the previous code, I have removed the content of every block to simplify the<br />

HTML. It's the general structure that we are interested in.<br />

First, the element has the ID sidebar-left. That is going to be the main<br />

container for our new accordion widget.<br />

The blocks are inside of the element. The blocks have the<br />

following structure:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Each of these blocks will be a collapsible region in our accordion. A collapsible<br />

region looks like this:<br />

Looks familiar? This is a block. The title of the block be<strong>com</strong>es the header of the<br />

collapsible region, <strong>and</strong> the block's content be<strong>com</strong>es the body of the collapsible region.<br />

[ 306 ]<br />

This material is copyright <strong>and</strong> is licensed for the sole use by Richard Ostheimer on 18th June 2009<br />

2205 hilda ave., , missoula, , 59801

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!