//Added to load Accordion effect - Only on FAQ, Article ID=xx, to avoid loading Mootools-More on all pages
$article_id = JFactory::getApplication()->input->get('id');
if ($article_id=="15") {
//Load Mootools-More
JHtml::_('behavior.framework', true);
//Javascript declaration
$document =Jfactory::getDocument();
$document->addScriptDeclaration('
window.addEvent(\'domready\', function( ){
navAcc = new Accordion( $$( ".accordion .accT" ), $$( ".accordion .accE" ), {display: -1, alwaysHide: true} );
})');
};
//End of added
<div class="accordion">
<h1>Creating Mootools accordion or simple slider</h1>
<a class="accT"><h1>Link 1 Container 1</h1></a>
<div class="accE">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
<a class="accT"><h1>Link 2 Container 2</h1></a>
<div class="accE">
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur in section 1.10.32.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, of Lorem Ipsum.</p>
</div>
<a class="accT"><h1>Link 3 Container 3</h1></a>
<div class="accE">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</div>
The following users have thanked you: Matt
Time to create page: 0.072 seconds