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
Milonic 'style' form buttons
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.
(2) Call the form's submit() method using menu item's url or clickfunction property, like so:
or
Style the aI() item as you see fit for hover effects, etc.
Haven't tried it myself, but it should work.
Cheers,
Kevin
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: Select all
<form name="myform" ...>
Code: Select all
aI("text=Submit;url=javascript:document.myform.submit();");
Code: Select all
aI("text=Submit;clickfunction=document.myform.submit();");
Haven't tried it myself, but it should work.
Cheers,
Kevin