Drop-Down Box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, i made a form, my question is:
is it possible to change the shape of the arrow and other elements such as
Option Button as graphic. I designed a graphic in Adobe Photoshop, and I want
to use it in the form instead of classic style.
Thanks
 
It is not strictly possible. It is possible to emulate it, but it would be
rather tricky to do, requiring a mix of HTML, CSS, and JavaScript to do
correctly, as well as accounting for the differences in browsers when
rendering.

The basic strategy is this: You create 2 images, one that represents the
button in its "unpressed" and one that represents its "pressed" state, the
same size as the button in the select element. the "unpressed" image is
superimposed over the button in the document using CSS for positioning, and
(most likely) JavaScript and CSS to maintain the position relative to the
select element. You write a JavaScript function for the "mousedown" event of
the image that swaps it out with the other image. You write a "click" event
handler for the image that re-swaps the images and clicks the select
element's button underneath it.

The realization of the strategy of course is quite a task.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 
Back
Top