christopheL
04-24-2008, 11:37 AM
Hello,
1) Script Title: Accordion Content script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm
3) Describe problem:
I included the ddaccordion.init in a file (as base.js) with my defaults parameters on all html sheets. It is configured to expand first header at init.
But from time to time, in a few sheets, I want first and second to be expanded.
So I added this line :
<script type="text/javascript">ddaccordion.expandone('collapsehead', 1);</script>
(in <head> or <body>)
But this does not work : only first is expanded.
I do not understand why. How to make it works ?
(I would like not to use extra parameter on URL)
Note that I am new to javascript...
Christophe
1) Script Title: Accordion Content script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm
3) Describe problem:
I included the ddaccordion.init in a file (as base.js) with my defaults parameters on all html sheets. It is configured to expand first header at init.
But from time to time, in a few sheets, I want first and second to be expanded.
So I added this line :
<script type="text/javascript">ddaccordion.expandone('collapsehead', 1);</script>
(in <head> or <body>)
But this does not work : only first is expanded.
I do not understand why. How to make it works ?
(I would like not to use extra parameter on URL)
Note that I am new to javascript...
Christophe