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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:35

Milonic 'style' form buttons


Poster: slserra
Dated: Tuesday August 16 2005 - 19:50:32 BST

I was on here some time ago and i read something about someone who had worked out the code to make simple form buttons in the style of the milonic menu (i'm guessing sharing the same style sheet etc).

Does anyone know where this thread is or how you could create a single onhover submit button in the same style as the milonic menu? If i made a single element milonic menu would that be slow to load:?

Thanks

Steve


Poster: John
Dated: Tuesday August 16 2005 - 20:00:07 BST

You can see how it was done on Milonic simply by looking at the _data and/or css file(s) on the home page. As for the exact thread, try the Search function.


Poster: kevin3442
Dated: Wednesday August 17 2005 - 5:20:57 BST

Hi Steve,

A single-element menu (i.e., a menu with one item) would take no time at all to load. To use it to submit a form, you'd have to:

(1) Give the form a name in the <form> tag, e.g.
Code:
<form name="myform" ...>


(2) Call the form's submit() method using menu item's url or clickfunction property, like so:
Code:
aI("text=Submit;url=javascript:document.myform.submit();");

or
Code:
aI("text=Submit;clickfunction=document.myform.submit();");


Style the aI() item as you see fit for hover effects, etc.

Haven't tried it myself, but it should work.

Cheers,

Kevin