Customizing Option Elements

Laszlo Nagy gandalf at shopzeus.com
Sat Oct 3 15:22:53 EDT 2009


> I want to create <option> elements within a <select> element in which 
> I could insert html, which, of course, is illegal (don't tell the 
> police ;) so I'm looking at recreating the form elements using my own 
> customized elements, that is, hacking the equivalent from scratch, but 
> how do I proceed? I would like to make blocks of color using 6-digit 
> rgb codes (#ffffff) with verbiage. How proceed?
That are your requirements? If the only requirement is that it should 
look very very fancy and futuristic then you can do it with flash 
programming. (You need Flash knowledge and the result may not be a real 
<select> but an <object>.) Another way to do it is JavaScript and 
absolute positioned DOM elements (you will need CSS and JavaScript 
knowledge). One thing is sure: this question has almost nothing to do 
with Python. Please post this to a JavaScript or Flash programming 
mailing list.

  Laszlo




More information about the Python-list mailing list