Milonic 'style' form buttons

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
slserra
Beginner
Beginner
Posts: 2
Joined: Mon May 05, 2003 11:21 pm

Milonic 'style' form buttons

Post by slserra »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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: Select all

<form name="myform" ...>
(2) Call the form's submit() method using menu item's url or clickfunction property, like so:

Code: Select all

aI("text=Submit;url=javascript:document.myform.submit();");
or

Code: Select all

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