Page 1 of 1
Re: Simple Menu. Easy Money
Posted: Tue Apr 01, 2008 6:01 pm
by SimonSchaufi
it is not easy to ask the menumanager for the first and the last item of a (sub)menu but the rest is easy. in my opinion the only possibility is to ask for an id and then set the first and last attribute
Re: Simple Menu. Easy Money
Posted: Wed Apr 02, 2008 11:54 am
by bterkuile
I think a good solution would be to do that dynamically. This can be done by jquery (
www.jquery.com).
Include this into the head of your template:
Code: Select all
<__script__ type="text/javascript" src="loaction of jquery file.js"></__script>
<__script__ type="text/javascript">
$(document).ready(function(){
$('.menu>ul>li:first').addClass('first');
$('.menu>ul>li:last').addClass('last');
});
</__script>
And it should work
Re: Simple Menu. Easy Money
Posted: Thu Apr 03, 2008 1:26 pm
by SimonSchaufi
i have done almost everything already apart from first and last item
Re: Simple Menu. Easy Money
Posted: Mon Apr 21, 2008 6:44 pm
by SimonSchaufi
The job is done.
Re: Simple Menu. Easy Money
Posted: Thu Apr 24, 2008 11:44 am
by xiaohan
It is very good ,I will help you if you pay more money ! Email:
hanidc@qq.com