SSL Labs ScoreSecurityHeaders.io Score

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Welcome to the Kunena forum!

Tell us and our members who you are, what you like and why you became a member of this site.
We welcome all new members and hope to see you around a lot!

Several head section

More
3 months 3 weeks ago #929 by robato
robato created the topic: Several head section
Hi,
I'm using MooAccordion for my website and it works perfect for my first section but when I add another section all subitems are open and I want them to be closed, see example on https://mattesnille.se/valj-omrade .

What I want is that only the images should be shown when the page loads, when I click on the image the subtext appears as in the first image. How do I accomplish this?

This is my code so far:
<h1>Välj område</h1>
<div id="myaccordionid"><strong class="mooaccordion headone"><img src="images/samband.jpg" alt="samband" width="200" height="142" style="margin: 10px;" />Samband och förändring<br /></strong>
<div id="myaccordionid"><strong class="mooaccordion headtwo">Funktioner</strong>
<div><a href="samband/funktioner/rata-linjens-ekvation" title="Skapa decimaltal"></a><strong class="mooaccordion"><a href="index.php?option=com_joomdle&amp;view=course&amp;course_id=6&amp;Itemid=315">Räta linjens ekvation</a></strong></div>
</div>
</div>
<div id="myaccordionid"><strong class="mooaccordion headone"><img src="images/16560567.jpg" alt="16560567" width="200" height="130" style="margin: 10px;" />Geometri<br /></strong>
<div id="myaccordionid"><strong class="mooaccordion headtwo">Funktioner</strong>
<div><a href="samband/funktioner/rata-linjens-ekvation" title="Skapa decimaltal"></a><strong class="mooaccordion"><a href="index.php?option=com_joomdle&amp;view=course&amp;course_id=6&amp;Itemid=315">Räta linjens ekvation</a></strong></div>
</div>
</div>
<p>{content-mooaccordion id='myaccordionid' allowallclosed}</p>

Please Log in or Create an account to join the conversation.

More
3 months 3 weeks ago #930 by michael
michael replied the topic: Several head section
You have misunderstood the instructions.

"myaccordionid" is supposed to be an example of a unique ID. The HTML DOM wants every element with an ID to have a unique ID.

It should appear on the page only once. If you want more than one styled accordion, each accordion must have a unique ID.

Please Log in or Create an account to join the conversation.

More
3 months 3 weeks ago #931 by michael
michael replied the topic: Several head section
Looking over your code, I'm not even sure that I understand what you're trying to do.

Please Log in or Create an account to join the conversation.

More
3 months 2 weeks ago #980 by robato
robato replied the topic: Several head section
Hi,
I must have misunderstood the instructions. What I want to achieve is that everything should be closed when I enter the page.


When I click on the first image the second items should be opened but the third should be closed.


Finally the third item should appear when I click on the second item, is this possible in Mooaccordion?

Attachments:

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #982 by michael
michael replied the topic: Several head section
OK, I'll look over your code and give you something that will work for that.

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #985 by robato
robato replied the topic: Several head section
That's what I call service, thanks a lot!

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Kunena Forum