-
AuthorPosts
-
brankopilic Friend
brankopilic
- Join date:
- December 2014
- Posts:
- 131
- Downloads:
- 0
- Uploads:
- 70
- Thanks:
- 53
- Thanked:
- 5 times in 1 posts
March 29, 2012 at 3:27 am #175542Hi,
I am wondering how to set up JA Accordion to have all panels closed when you open a web site? Instead of having first panel open?
Here is my web site: http://umrc1.cloudaccess.net/
Attached picture how I would like to be when web site is open: 1. JA Accordion issue.JPG
And attached picture how it is at the moment: 2. JA Accordion issue.JPGIt looks like that the javascript sets the first panel to display open! I was trying to play with start and end under template menu style with 1 and -1 features how to open menu! But this changes I guess of course didn’t applied on accordion module.
Here is also a code what might help!?
<script type=”text/javascript”>
window.addEvent(‘domready’, function(){
var myAccordion = new Fx.Accordion($(‘ja-accordion146’), $$(‘.ja-accordion-title146’), $$(‘.ja-accordion-content146’), {
alwaysHide: true,
display: 0,
trigger: ‘click’,
duration: 300,
transition: Fx.Transitions.quartOut,
onActive: function(toggler, element){
toggler.addClass(‘active’);
element.addClass(‘active’);
},
onBackground: function(toggler, element){
toggler.removeClass(‘active’);
element.removeClass(‘active’);
}
});
});
</script>Thank you in advance for your time and support.
Best,
Branko-
khoand Friend
khoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 29, 2012 at 5:15 am #446258You replace the code
alwaysHide: true,
with
display: -1,
alwaysHide: true,1 user says Thank You to khoand for this useful post
brankopilic Friendbrankopilic
- Join date:
- December 2014
- Posts:
- 131
- Downloads:
- 0
- Uploads:
- 70
- Thanks:
- 53
- Thanked:
- 5 times in 1 posts
March 29, 2012 at 6:55 am #446266Woow, AAAA+++++++++++
Khoand Thanks a lot. I highly appreciate your help. It worked out perfect. Once again thank you for your time and support with this matter.
Best,
b<em>@khoand 310892 wrote:</em><blockquote>You replace the code
alwaysHide: true,
with
display: -1,
alwaysHide: true,
</blockquote>April 29, 2012 at 11:11 am #450671Hi, Sorry for opning this again: I have a similar issue with JA accordion but I need to have the Parent accordion item to open when it has a child linked that is active. Here is the site dev link: http://dev.digitup.se/suhoski/index.php?option=com_content&view=article&id=78&Itemid=455 If you choose a link under WEBBDESIGN and click, the first item is still opened although it is more logic to open the parent for the clicked one. Any ideas, please?
Arvind Chauhan ModeratorArvind Chauhan
- Join date:
- September 2014
- Posts:
- 3835
- Downloads:
- 74
- Uploads:
- 92
- Thanks:
- 1240
- Thanked:
- 1334 times in 848 posts
May 3, 2012 at 3:02 am #451164Hi abboud,
I am sorry but active support is available only to paid members. Please renew your membership to avail support.
Regards
mattsh Friendmattsh
- Join date:
- January 2007
- Posts:
- 39
- Downloads:
- 8
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
June 14, 2012 at 5:21 pm #457448Hi!
Where can I find this js-file or the javascript?
Thanks!
Matt
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
June 15, 2012 at 9:31 am #457558<em>@mattsh 325427 wrote:</em><blockquote>Hi!
Where can I find this js-file or the javascript?
Thanks!
Matt</blockquote>
Hello Matt,This script is located in “modulesmod_jaaccordiontmpldefault.php”.
Regards.
1 user says Thank You to Stork11 for this useful post
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 6 voices, and was last updated by mattsh 12 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum