Wednesday, April 2, 2008

Add javascript dropdownlist in your blog

I was looking for a way to add a dropdownlist in my blog, finally I've found this. Happy It's simple and it's what I want.

I do not know why the above dropdownlist is not working, but when you copy these codes to your blog, it should be able to work.

Just copy the following codes, and add to your blog. In Blogger, Add these codes in HTML/Javascript element, then it works fine.

<!--BEGIN dropdownlist--><script language="JavaScript">
function selectOption(selObj){
window.open(selObj.options[selObj.selectedIndex].value);}</script>

<select style="background: #c6e2ff; color: #000000" onchange="selectOption(this)">
<option value="">- Please select -</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.msn.com">MSN</option></select>
<!--END dropdownlist-->



 


I got this script from this blog. Thanks! Happy

3 comments:

  1. Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Home Broker, I hope you enjoy. The address is http://home-broker-brasil.blogspot.com. A hug.

    ReplyDelete
  2. The matchless message, is interesting to me :)

    ReplyDelete