| jp Accordion - Customization |
|
This tutorial is intended to help you to customize the jp Accordion module. If you are looking for instructions about using 'n,' you can find them in another tutorial for jp Accordion. To prevent a slide opening as the page loads : Change this line in the module's php file (you can find it around line number 97): var jqsliderjp_cookie = '#mod1'; to: var jqsliderjp_cookie = '#'; To make sure the module's tabs are always closed, comment out these lines of bold code in the module's php file: jQuery(function(){ by changing them to: //var jqsliderjp_cookie = "#"+get_cookie('sjp_cookie'); //if (jqsliderjp_cookie == '#null'){ You can also prevent all the slides opening and closing at page load by adding this CSS style to the CSS code: .sliderjp_content {text-align:justify;padding-left: 2px;width:<?php echo $width; ?>px;display:none;} Let me know if you have any problems using these small hacks. Although I can make them options in the back-end of the module, I thought that most people would prefer a lower module code bulk.
|
| Login to view your licenses |