List Changer

This is a very simple background changer. It just takes the selected value from the list and makes that the background color.

Insert the following code inside the <body> tag:

<FORM><SELECT Size=5 name=clr onChange=”document.bgColor=this.options[this.selectedIndex].value”><OPTION VALUE=”blue”>blue<OPTION VALUE=”aquamarine”>aquamarine<OPTION VALUE=”chocolate”>chocolate<OPTION VALUE=”darkred”>dark red<OPTION VALUE=”gold”>gold<OPTION VALUE=”red”>red<OPTION VALUE=”yellow”>yellow<OPTION VALUE=”hotpink”>hotpink<OPTION VALUE=”lime”>lime<OPTION VALUE=”darkkhaki”>dark khaki<OPTION VALUE=”cadetblue “>cadet blue<OPTION VALUE=”darkgoldenrod”>dark goldenrod<OPTION VALUE=”darkslateblue”>dark slate<OPTION VALUE=”blue”>blue<OPTION VALUE=”deeppink”>deep pink<OPTION VALUE=”darksalmon”>dark salmon<OPTION VALUE=”salmon”>salmon<OPTION VALUE=”tan”>tan<OPTION VALUE=”wheat”>wheat<OPTION VALUE=”tomato”>tomato<OPTION VALUE=”springgreen”>springgreen<OPTION VALUE=”turquoise”>turquoise<OPTION VALUE=”white” SELECTED>White</SELECT></FORM>

Permanent link to this article: https://blog.openshell.in/2011/03/list-changer/

Leave a Reply

Your email address will not be published.