/    Sign up×
Community /Pin to ProfileBookmark

Having a drop-down box looking like this

Hey wutsup ppl, i gotta bit of a problem here.
I want my dropdown box 2 look a specific way, but I have absolutely no clue how 2 get it done.

[IMG]http://img292.imageshack.us/img292/999/damnitzl9.jpg[/IMG]

Thats how it should look like….

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@KDLAJan 22.2008 — Take a look at one I've got on [url="http://ibcfrankfort.com/irc.htm"]this page[/url].

[url="http://www.ibcfrankfort.com/css/lh-nav.css]CSS[/url]

Javascript:
<i>
</i>// Preload menu hover image
//var hoverImage = new Image();
//hoverImage.src = "images/menuOn.gif";

// Set up the menu
onload = function () {
var menu = document.getElementById("drop")
var titles = menu.getElementsByTagName("span");
var subMenus = menu.getElementsByTagName("ul");
for (var i=0;i&lt;titles.length;i++) {
titles[i].onclick = toggleView;
subMenus[i].style.display = "none";
}
// Work around for lack of :hover pseudo-class in IE
if (document.all) {
for (var i=0;i&lt;menu.childNodes.length;i++) {
if (/^li$/i.test(menu.childNodes[i].tagName)) {
menu.childNodes[i].onmouseover = new Function("this.className = 'hover'");
menu.childNodes[i].onmouseout = new Function("this.className = 'menutitle'");
}
}
}
}

// Show/Hide toggle for submenus
function toggleView() {
var i = 0;
while(!/^ul$/i.test(this.parentNode.childNodes[++i].tagName));
var subMenuStyle = this.parentNode.childNodes[i].style;
subMenuStyle.display = subMenuStyle.display == "none" ? "block" : "none";
}
×

Success!

Help @hyper spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...