Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Accordion Joomla module

Topic-icon Define Active Slot

More
5 years 6 months ago #10013 by monomaniac
Hi,
is it possible (or will it be) to define one slot as an 'active slot'? I use HOT Accordion as a header for my website. On the first page the first slot ist opened and the others open when I hover over them. I'd like to have the second slot open on the second page, the third on the third and so on. Is there a way to achieve this?

Please Log in to join the conversation.

More
5 years 6 months ago #10027 by ivan.milic
you can simulate user hovering by adding script like this to you page:

<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(jQuery('.hot_accordion LI')[2]).hover();
});
</script>


where 2 stands for 3rd element in accordion because array is zero based,
[0] - first,
[1] - second
...

You can put that in some custom modules for each page.

Please Log in to join the conversation.

More
5 years 6 months ago #10034 by monomaniac
Thank you for your answer. But I don't really know where to put the script. I've tried to put it into a custom module but it only shows me the text of the script.

I think I understood something wrong ...

Please Log in to join the conversation.

More
5 years 6 months ago #10036 by monomaniac
Ok. So now I found out how to enter javascript into the custom module. But it still doesn't work.

Please Log in to join the conversation.

More
5 years 6 months ago #10061 by ivan.milic
try this:

<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(jQuery('.hot_accordion LI')[2]).delay(1000).hover();
});
</script>

also best if that custom module could be stemware at the bottom of page.

Please Log in to join the conversation.

More
5 years 6 months ago #10067 by monomaniac
Doesn't work either, sorry. I can see the script when I look into the source code of the page so it should work.

Here's the URL of my page (work in progress) maybe this helps: www.compound-media.de/joomla/drucksachen

Please Log in to join the conversation.

Time to create page: 0.127 seconds

Links, Partners and Social Media