Ask questions and get good answers on jQuery

Hello together, I need a direct link at the end of my menu for login. So I don't need any dropdown. How could I realize that in (fantastic) mbmenu? I have no clue about javascripts so I tried and failed with

<td class="rootVoice {menu: 'empty'}">
<a href="login.html", target='_self'>
<img src='menu/login.png' alt='login' title='login/register'>
</a></td>

I also tried <a action="open('login.htm');"> what wasn't better...

Could someone give me a help? Tank you!!!

asked Feb 18 '10 at 12:55

user-58%20%28google%29's gravatar image

user-58 (google)
111

edited Feb 18 '10 at 13:22

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

ok, just delete class in td and so it works. Live could be so easy...

(Feb 18 '10 at 12:59) user-58 (google)

ok, just delete class in td and so it works. Live could be so easy...

answered Feb 18 '10 at 13:01

Jan's gravatar image

Jan
1

Removing the class from the TD is a solution but if you whant your root voices have the same behaviour than this is the solution:

<td class="rootVoice {menu: 'empty'}" onclick="top.location.href='login.html';">log-in</td>

In this case once you roll over your direct link TD after opening one of the other voices it close the opened menu.

answered Feb 18 '10 at 13:19

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

fantastic script. brilliant support. Thank you! Jan Kube

answered Feb 20 '10 at 09:59

Jan's gravatar image

Jan
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×1
×1

Asked: Feb 18 '10 at 12:55

Seen: 489 times

Last updated: Aug 07 '10 at 17:23

Related questions

jQuery main site - Matteo Bicocchi