smansakra
08-21-2008, 04:54 AM
1) Script Title: Animated Collapsible DIV
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
3) Describe problem:
hi all, to make our collapsible works , we should inser it :
<script type="text/javascript">
animatedcollapse.addDiv('jason', 'fade=1,height=80px')
animatedcollapse.addDiv('kelly', 'fade=1,height=100px')
animatedcollapse.addDiv('michael', 'fade=1,height=120px')
animatedcollapse.init()
</script>
on the head section.
and then on body we should have the coresponds div.
but what about if on my body contains hundreds of div?
like below
<div id="posting_1"
<div id="posting_2"
<div id="posting_3"
<div id="posting_4"
<div id="posting_5"
<div id="posting_6"
and so on until 47.
should i write on my head section something like:
<script type="text/javascript">
animatedcollapse.addDiv('posting_1', 'fade=1')
animatedcollapse.addDiv('posting_2', 'fade=1')
animatedcollapse.addDiv('posting_3', 'fade=1')
animatedcollapse.addDiv('posting_4', 'fade=1')
animatedcollapse.addDiv('posting_5', 'fade=1')
animatedcollapse.addDiv('posting_6', 'fade=1')
and so on until 47
animatedcollapse.init()
</script>
can anyone here give smarter solution? please thanks
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
3) Describe problem:
hi all, to make our collapsible works , we should inser it :
<script type="text/javascript">
animatedcollapse.addDiv('jason', 'fade=1,height=80px')
animatedcollapse.addDiv('kelly', 'fade=1,height=100px')
animatedcollapse.addDiv('michael', 'fade=1,height=120px')
animatedcollapse.init()
</script>
on the head section.
and then on body we should have the coresponds div.
but what about if on my body contains hundreds of div?
like below
<div id="posting_1"
<div id="posting_2"
<div id="posting_3"
<div id="posting_4"
<div id="posting_5"
<div id="posting_6"
and so on until 47.
should i write on my head section something like:
<script type="text/javascript">
animatedcollapse.addDiv('posting_1', 'fade=1')
animatedcollapse.addDiv('posting_2', 'fade=1')
animatedcollapse.addDiv('posting_3', 'fade=1')
animatedcollapse.addDiv('posting_4', 'fade=1')
animatedcollapse.addDiv('posting_5', 'fade=1')
animatedcollapse.addDiv('posting_6', 'fade=1')
and so on until 47
animatedcollapse.init()
</script>
can anyone here give smarter solution? please thanks