05
Jan 09Simple DropDowns for All
I was looking at Youtube the other and was noticing they use a ton of dropdown menus.
When I looked through YouTube’s code, I had a hard time finding out how they were generating these. It turned out they had a pretty elaborate script which relied on several other youtube resources. So I decided to write a standalone version that looks just as good, performs even better, and has a tiny footprint. Here’s what I came up with:
Example Dropdown Menu: Example Dropdown Menu
Doesn’t it look great? And it’s incredibly simple to use.
How To Use
1. First, download simpledropdown.js script.
2. Next, include the following line of code in your website:
<script type="text/javascript" src="simpledropdowns.js"></script>
3. Create span elements with the class set to "dropdown" and place the text you want to fill the dropdown menu
with in the title attribute, like so:
<span class="dropdown" title="Menu Text">Drop Down</span>
That simple code will create this menu: Drop Down.
To create something fancier like the menu “Example Dropdown Menu” above, or to learn more about how the dropdown menu can be used in your website, check out the SimpleDropDowns project home page here. The script also has a Google Code project page here. Enjoy!
Tags: dropdown, google code, javascript, website, youtube

March 1st, 2009 at 5:01 pm
is there a forum on the site?
April 25th, 2009 at 1:49 pm
Finally someone who can write a good blog ! . This is the kind of information that is useful to those want to increase their SERP’s.
I loved your post and will be telling others about it. Subscribing to your RSS feed now. Thanks
April 30th, 2009 at 8:19 pm
This was highly informative
. Many thanks to the poster