Showing posts with label drop down. Show all posts
Showing posts with label drop down. Show all posts

Sunday, January 28, 2007

Fixed Width Drop Down Menu Code

This is an example from the class of Swedes:

<form name="Swedes">
<select name="selitems" style="width:215px;" style="color: rgb(255, 102, 204);" onchange="javascript:window.location.href=''
+document.Swedes.selitems
[document.Swedes.selitems.selectedIndex].value;">
<option value="http://foodblogscool.blogspot.com/" selected>Class S06 | Swedes</option>
<option value="http://www.mamacooks.com">Mama Cooks</option>
<option value="http://kitchen-notebook.blogspot.com/">Lucy's Kitchen Notebook</option>
<option value="http://www.cforcooking.com">Adding Flavor</option>
<option value="http://www.kungfoodie.com">Kung Foodie</option>
<option value="http://cooking-101.blogspot.com">Cooking 101</option>
<option value="http://www.2tastyladies.com">2 Tasty Ladies</option>
<option value="http://www.theoldfoodie.blogspot.com/">The Old Foodie</option>
<option value="http://www.myfavouriteplum.blogspot.com/">My Favourite Plum</option>
<option value="http://homerecipes.org">Home Recipes</option>
<option value="http://www.dessertfirst.typepad.com">Dessert First</option>
<option value="http://saffrontrail.blogspot.com/">Saffron Trail</option>
<option value="http://yulinkacooks.blogspot.com">Yulinka Cooks</option>
<option value="http://www.foodchair.blogspot.com">Food Chair</option>
<option value="http://www.copperpots.blogspot.com">Copper Pots</option>
<option value="http://www.dailyeats.com">Daily Eats</option>
</select>
</form>

-------------------

where Swedes is marked in bold in the above example, edit these 3 iterations of your form name so that they are all unique to your blog roll but the same for each of these three iterations.

"Class S06 | Swedes" should be replaces by whatever you want to be the title of your menu.

specify the width of your menu in pixels ie width:215px;

Hope that makes sense to anyone who would like to have such a menu.

This Post was written by sam from becks & posh