napy666 Posted June 11, 2012 Report Share Posted June 11, 2012 I made a drop down list with links but they always open in the same window they also have color I use black and red. I want the links to open in a new window and still maintain the colors. How can I make a drop down list like this? What will the coding be? Here is my current drop down list coding, <HR SIZE="3" 000000><h2 class="title">Interviews A - E</h2><div class='widget-content'><select onchange='location=this.options[this.selectedIndex].value;' style='width:240px; color:#00ff00; background-color:#000000;'><option />Select a Band<option value="http://natalie-nataliesworld.blogspot.com/2010/08/robb-kavjian-of-1476-answered-some.html" />1476 Interview 2010<option value="http://natalie-nataliesworld.blogspot.com/2012/02/3-inches-of-bloods-cam-pipes-long-lives.html" />3 Inches Of Blood Interview 2012<option value="http://natalie-nataliesworld.blogspot.com/2009/03/9mm-solution-interview.html" />9MM Solution Interview 2009<option value="http://natalie-nataliesworld.blogspot.com/2011/06/band-of-orcs-interview-from-realm-they.html" />A Band Of Orcs Interview 2011<option value="http://natalie-nataliesworld.blogspot.com/2011/05/beautiful-nightmare-is-windy-citys-top.html" />A Beautiful Nightmare Interview 2011<option value="http://natalie-nataliesworld.blogspot.com/2011/01/blessing-through-tragedys-regretful.html" />A Blessing Through Tragedy Interview 2011<option value="http://natalie-nataliesworld.blogspot.com/2012/03/midnight-tragedys-dallas-sanchez-talks.html" />A Midnight Tragedy Interview 2012<option value="http://natalie-nataliesworld.blogspot.com/2011/02/six-year-run-with-skylit-drive-what.html" />A Skylit Drive Interview 2011<option value="http://natalie-nataliesworld.blogspot.com/2009/01/thorn-for-every-heart-interview.html" />A Thorn For Every Heart Interview 2009<option value="http://natalie-nataliesworld.blogspot.com/2010/11/exclusive-interview-with-trent-hafdahl.html" />After The Burial Interview 2010<option value="http://www.youtube.com/watch?v=ksXNwjmZTIE" />After Midnight Project Interview 2009<option value="http://youtu.be/2UMwTt03EXA" />Aiden Interview 2011</select></div> 1 Link to comment Share on other sites More sharing options...
afish674 Posted June 11, 2012 Report Share Posted June 11, 2012 (edited) Best way to do dropdowns is with CSS. There is a site that'll do most of it for you if you need to: http://purecssmenu.com/ If you wanted to open the links in a new window then you could use the "target=_new" attribute on the anchor, although this is apperently deprecated. Edited June 11, 2012 by afish674 Link to comment Share on other sites More sharing options...
eTianbun Posted June 11, 2012 Report Share Posted June 11, 2012 <select onChange='window.open(this.options[this.selectedIndex].value);'... 1 Link to comment Share on other sites More sharing options...
napy666 Posted June 11, 2012 Author Report Share Posted June 11, 2012 Thanks for help it worked like a charm!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now