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

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
wolffang
Beginner
Beginner
Posts: 1
Joined: Fri Jun 21, 2002 6:00 pm

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

Post by wolffang »

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
NiGHTSFTP
Beginner
Beginner
Posts: 4
Joined: Wed Jun 05, 2002 9:00 pm

Yes!

Post by NiGHTSFTP »

This is exactly what I was looking for.

You sir, kick royal ass.
shaunog
Beginner
Beginner
Posts: 2
Joined: Wed Aug 14, 2002 9:40 pm

relative positioning (by binding to table cell)

Post by shaunog »

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
Post Reply