Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:34

Menu bound to a table cell.... can you dig this code??


Poster: wolffang
Dated: Friday June 21 2002 - 20:03:47 BST

Hi Everyone...

Praise to u guys for the all the hard work that I have seen going into building this excellent menu builder... I am happy to see ongoing development by the community to make this a great menu system... especially Exsisto, who are developing a app for this builder... http://www.milonic.co.uk/menu/forum/viewtopic.php?t=911

Now for why this thread is being produced... one of the key aspects of the menu builder is binding to a table cell... unfortunately after many debates, we have just cracked it for our little problems...

one of the issues people have with the menu is that it loads first in the top left corner, and then it positions itself... this is highly unproffessional so we needed to improvise....

Everyone has different applications for the menu... ours was simple... it had to centre on the page horizontally and vertically and dropdown at the exact pixel location relative to a table cell.

1st we had to deactivate the menu in the arrays, so it does not show... we use our own table with elements...

2nd... a little javascript style script.... added at the top with the other scripts
_______________________________________________
<script language=javascript>
function swapIn(objTD) {
objTD.style.backgroundColor = "#6666FF";
objTD.style.color = "#ffffff";
}
function swapOut(objTD) {
objTD.style.backgroundColor = "#ccccff";
objTD.style.color = "NAVY";
}
</SCRIPT>
_______________________________________________

this helps with the rollovers...

fianlly, the table cell looks like this...

<td width="94" align="center" bgcolor="#ccccff" class="link_menu" style="cursor: hand;" onClick="window.location='about.asp'" onMouseOver="swapIn(this);popup('about');" onMouseOut="swapOut(this);popdn();">item 2 </td>

the cell changes the link and drops the menu....

I have put online a working example and a zipfile of the whole thing to download at...

http://www.gserver.co.uk/milonic/milonic.htm

Hopefully this will help some of you...

:D Jay :D

Yes!


Poster: NiGHTSFTP
Dated: Sunday June 23 2002 - 16:11:17 BST

This is exactly what I was looking for.

You sir, kick royal ass.

relative positioning (by binding to table cell)


Poster: shaunog
Dated: Wednesday August 14 2002 - 21:43:30 BST

Hey Wolfgang,

I was wondering which lines of code do you need to comment out to "deactivate the menu in the arrays, so it does not show".

Thanks in advance,

Shaun