- Screen name: Bunster
Bunster's Profile
2 Posts
9 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- I have set up a menu containing 4 levels.
The first two levels show the menu name perfectly but the width of levels 3 and 4 are too narrow to contain the menu name.
I was wondering how I can ensure that the level 3 and level 4 menus can be styled to make them fit the contents.
My code is as follows:-
$( "#menu" ).menu({
select: function( event, ui ) {
var link = ui.item.children( "a:first" );
if ( link.attr( "target" ) || event.metaKey || event.shiftKey || event.ctrlKey ) {
return;
}
location.href = link.attr( "href" );
}
});
HTML
<ul id="menu">
<li><a href="http://www.just-another-thought.info/shop/tony-c-77.html">Tony</a>
<ul>
<li><a href="http://www.just-another-thought.info/shop/tony-l2anti-aging-antioxidant-vitamins-c-79.html">l2Anti Aging (Antioxidant Vitamins)</a>
<ul>
<li><a href="http://www.just-another-thought.info/shop/l2anti-aging-antioxidant-vitamins-l3anti-aging-antioxidant-vitamins-c-80.html">l3Anti Aging (Antioxidant Vitamins)</a>
<ul>
<li><a href="http://www.just-another-thought.info/shop/l3anti-aging-antioxidant-vitamins-l4anti-aging-antioxidant-vitamins-c-81.html">l4Anti Aging (Antioxidant Vitamins)</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>I thought that I would introduce myself as I am sure I will be in these forums a lot of the time from now on.
Having developed numerous static sites in PHP/MYSQL/JavaScript I have been given an opportunity by one of my clients to give their sites a bit of movement.
So a few months ago I starting looking at AJAX and Dom manipulation using JavaScript, which the client really liked but mow they are asking for more movement on the site and that's when I started to look at jQuery. I must admit at first glance it looked a bit scary, which is why I developed my own AJAX code but now I wish I hadn't as I can now see that jQuery does it all.
So I am now excited at learning yet another language but even more excited about what it can do for my client sites and the speed at which these changes can be developed.
So I am now off to the tutorials but I can almost guarantee, I will be back.
Regards
jQuery Newbie.
- «Prev
- Next »
Moderate user : Bunster



