Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
Accordian menu (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Accordian menu
#6294
Accordian menu 1 Year, 3 Months ago  
Hi guys.
First, congratulation for your great job.

I hope, you can tell us, how did you make this fansy vertical accordian menu on front page.
What componenet/module/hack did you use?

Thanks for you answer.
askerc (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#6296
Re:Accordian menu 1 Year, 3 Months ago  
we made our self. We used jquery js library.
greatpixels (Admin)
BoJ Team
Moderator
Posts: 456
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Best of Joomla! Location: USA Birthdate: 1978-10-31
Logged Logged
 
Project Manager : Lead Developer
 
The administrator has disabled public write access.  
#6309
Re:Accordian menu 1 Year, 3 Months ago  
Thanks

Is there any chance to share this?

Post edited by: askerc, at: 2007/05/12 15:31
askerc (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#6757
Re:Accordian menu 1 Year, 3 Months ago  
askerc:
Not too sure if this would help you, but you can also take a look at Jquery Slider Jp. Here's the Joomla.org extentsions link. It looks pretty nice on thier demo site. They charge $15 for it but it seems fairly similar.
tony121 (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#6831
Re:Accordian menu 1 Year, 3 Months ago  
Thanks Toni121
I'v looking around this days and try to realize how to use jQuery library.
Now i know, that this is not so hard.

You have to go through next steps:

1. Download jquery library and include it in your template index.php
2. Put these lines in HEAD section (you can change values for css)

Code:


<script>
$(document).ready(function(){
$("dd:not(:first)"«»).hide();
$("dt a"«»).click(function(){
$("dd:visible"«»).slideUp("slow"«»);
$(this).parent().next().slideDown("fast"«»);
return false;
});
});
</script>
<style>

dl { width: 200px; }
dl,dd { margin: 0; }
dt { background: #FF3; font-size: 1.2em; padding: 5px; margin: 2px; }
dt a { color: #FFF; }
dd a { color: #555; }
ul { list-style: none; padding: 5px; }
</style>



3. Now, lets say, that you want to show user1, user2 and user3 module in right column of your template

Try this:

Code:

<dl>
<dt><a href="/#/">Title 1</a></dt>
<dd>
<ul>
<?php mosLoadModules ( 'user1',-2); ?>

</ul>
</dd>
<dt><a href="/#/">Title 2</a></dt>
<dd>
<ul>
<?php mosLoadModules ( 'user2',-2); ?>
</ul>
</dd>
<dt><a href="/#/">Title 3</a></dt>
<dd>
<ul>

<?php mosLoadModules ( 'user3',-2 ); ?>
</ul>
</dd>
</dl>



I know, that this isn't optimized, but it works.
If i found better way, i will post it here.

Post edited by: askerc, at: 2007/05/16 12:09

Post edited by: askerc, at: 2007/05/16 12:10
askerc (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop