Bewildered
Member
Posts: 10
Registered: 3/23/2007
Member Is Offline
|
| posted on 5/28/2008 at 12:26 AM |
|
|
Inserting a form in the menu
I would like to insert a one-field search form to the right of the Tirga Gold menu. I find that in menu.dom.js, if I insert a table cell with the
number 33 in it, the 33 displays properly. Specifically, I change this...
['<table cellpadding="',TMD[0],'" cellspacing="',TMD[1],'" border="',TMD[2],'" class="',TM1B.TM08('table'),this.TMi>-1?'"onmouseout="menus[''+this.TM1O.id+''].exec(''+this.id+'',1)"
onmouseover="menus[''+this.TM1O.id+''].exec(''+this.id+'',2)':'','"><tr>',this.TM1l.join(''),</tr></table>']
...to this (the change is near the end)...
['<table cellpadding="',TMD[0],'" cellspacing="',TMD[1],'" border="',TMD[2],'" class="',TM1B.TM08('table'),this.TMi>-1?'"onmouseout="menus[''+this.TM1O.id+''].exec(''+this.id+'',1)"
onmouseover="menus[''+this.TM1O.id+''].exec(''+this.id+'',2)':'','"><tr>',this.TM1l.join(''),'<td>33</td></tr></table>']
So far, so good. However, if I then replace the number 33 with an HTML form, the menu disappears - even if I escape every quote mark in the HTML code
with with " .
So how can I put a one-field search form to the right of the menu buttons in the Tigra Gold Menu?
Thank you.
|
|
|
tigra
Administrator
Posts: 1960
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/28/2008 at 03:32 PM |
|
|
the form inside the menu item will not work regardless of the described problem. the menu makes sure that the whole area of the menu item is
responsive to the mouse events by covering it with the transparent image. this will block any mouse events (such as focus on input box) from reaching
your form elements.
|
|
|
|