Forums Archive Index > SmartMenus 5 > alignment....
Date: 19 Apr 2005 3:43 pm
Hello all,
I'm new to smarmenu's.
I downloaded the example. I have a question.
This example is cool, it works.
However, i rewrote it to this:
Code:
<!-- Sample Horizontal Toolbar -->
<table id="toolbarHolder" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<a href="A_link_for_very_old_and_JS_disabled_browsers_may_be_placed_here.html" onmouseover="s_show('search',event)" onmouseout="s_hide()">
zoek</a>
</td>
<td>
<a href="A_link_for_very_old_and_JS_disabled_browsers_may_be_placed_here.html" onmouseover="s_show('e_mail',event)" onmouseout="s_hide()">
email</a>
</td>
<td>
<a href="A_link_for_very_old_and_JS_disabled_browsers_may_be_placed_here.html" onmouseover="s_show('masters',event)" onmouseout="s_hide()">
masters
</a>
</td>
<td>
<a href="A_link_for_very_old_and_JS_disabled_browsers_may_be_placed_here.html" onmouseover="s_show('sports',event)" onmouseout="s_hide()">
sports
</a>
</td>
</tr>
</table>
As you can see, i added a <td> for every menu element and i deleted the images and replaced them by normal text. I want it this way. I need it to be normal text. Furthemore, the advantage this way, is that (no matter how many menu elements there are) the browser resizes every <td> to the same size. I want to use this.
The problem, the menu appears in the same spot that it was originally, before i edit the stuff. So i think the X and Y coordinates are hard-coded? Is there anything i can do against this?
Thanks in advance.
Mosselmaniac[/code]
Date: 19 Apr 2005 6:21 pm
Mosselmaniac, please send me a small ZIP-ed example with one sample page. You can send me the example by email.
I will write a special function for relative positioning which will neatly do the positioning in your case. I will get back to you with a working example ASAP..
Date: 20 Apr 2005 1:25 pm
Wow, thanks! That's what i call service. i mail to you immediatly. but it's your own sample, just a bit adjusted :D
EDIT:
I'll mail you tomorrow i think, i'm exhausted, getting ill :(