Simple Menu. Easy Money

A place to make for-pay "CMS made simple" job offerings
Locked
SimonSchaufi

Re: Simple Menu. Easy Money

Post 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
Last edited by SimonSchaufi on Tue Apr 01, 2008 6:03 pm, edited 1 time in total.
bterkuile
Forum Members
Forum Members
Posts: 97
Joined: Sun Jul 22, 2007 11:48 am

Re: Simple Menu. Easy Money

Post 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
SimonSchaufi

Re: Simple Menu. Easy Money

Post by SimonSchaufi »

i have done almost everything already apart from first and last item
SimonSchaufi

Re: Simple Menu. Easy Money

Post by SimonSchaufi »

The job is done.
Last edited by SimonSchaufi on Fri Jul 04, 2008 2:29 pm, edited 1 time in total.
xiaohan
New Member
New Member
Posts: 3
Joined: Thu Apr 24, 2008 11:36 am

Re: Simple Menu. Easy Money

Post by xiaohan »

It is very good ,I will help you if you pay more money ! Email:hanidc@qq.com
Locked

Return to “Help Wanted (commercial)”