- Posts: 4
- Thank you received: 0
Define Active Slot
-
monomaniac
Inactive member - Topic Author
- New Member
Less
More
13 years 5 months ago #10013
by monomaniac
Define Active Slot was created 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?
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 5 months ago #10027
by ivan.milic
Replied by ivan.milic on topic Re: Define Active Slot
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.
<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.
-
monomaniac
Inactive member - Topic Author
- New Member
Less
More
- Posts: 4
- Thank you received: 0
13 years 5 months ago #10034
by monomaniac
Replied by monomaniac on topic Re: Define Active Slot
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 ...
I think I understood something wrong ...
Please Log in to join the conversation.
-
monomaniac
Inactive member - Topic Author
- New Member
Less
More
- Posts: 4
- Thank you received: 0
13 years 5 months ago #10036
by monomaniac
Replied by monomaniac on topic Re: Define Active Slot
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 5 months ago #10061
by ivan.milic
Replied by ivan.milic on topic Re: Define Active Slot
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.
<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.
-
monomaniac
Inactive member - Topic Author
- New Member
Less
More
- Posts: 4
- Thank you received: 0
13 years 5 months ago #10067
by monomaniac
Replied by monomaniac on topic Re: Define Active Slot
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
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.090 seconds