/    Sign up×
Community /Pin to ProfileBookmark

vertical menu from horizontal?

does anyone know where i can find [URL=http://javascript.internet.com/navigation/super-edition-menu.html]this menu[/URL] in vertical rather then horizontal? i’ve had a look on that site and have not been able to find one so far.

if not, how would i go about making it vertical?

any help appreciated

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@konithomimoJan 27.2006 — after each line that begins with AddMenu just add <br>. If that doesnt work then put that into a function in your header. Then create a div where you want the menu to be. Then put quotes around all of the Menu script parts and add in the <br>s. Then make the innerHTML of the div the string that you created.
Copy linkTweet thisAlerts:
@FangJan 27.2006 — son of Suckerfish is better. See their [URL=http://www.htmldog.com/articles/suckerfish/dropdowns/example/vertical.html]vertical menu[/URL] or if it has to in one column:&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;title&gt;son of Suckerfish&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
&lt;!-- http://www.htmldog.com/articles/suckerfish/dropdowns/ --&gt;
&lt;script type="text/javascript"&gt;
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i&lt;sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
&lt;/script&gt;

&lt;style type="text/css"&gt;
body {
font-family: arial, helvetica, serif;
}

#nav, #nav ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
line-height: 1;
}

#nav a {
display: block;
width: 10em;
}

#nav li { /* all list items */
width: 10em; /* width needed or else Opera goes nuts */
}

#nav li ul { /* second-level lists */
display:none;
background: orange;
width: 10em;
}

#nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */
left: auto;
display:block;
}

#content {
clear: left;
color: #ccc;
}
&lt;/style&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;ul id="nav"&gt;

<i> </i>&lt;li&gt;&lt;a href="#"&gt;Percoidei&lt;/a&gt;
<i> </i> &lt;ul&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Remoras&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Tilefishes&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Bluefishes&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Tigerfishes&lt;/a&gt;&lt;/li&gt;

<i> </i> &lt;/ul&gt;
<i> </i>&lt;/li&gt;

<i> </i>&lt;li&gt;&lt;a href="#"&gt;Anabantoidei&lt;/a&gt;
<i> </i> &lt;ul&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Climbing perches&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Labyrinthfishes&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Kissing gouramis&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Pike-heads&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Giant gouramis&lt;/a&gt;&lt;/li&gt;

<i> </i> &lt;/ul&gt;
<i> </i>&lt;/li&gt;

<i> </i>&lt;li&gt;&lt;a href="#"&gt;Gobioidei&lt;/a&gt;
<i> </i> &lt;ul&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Burrowing gobies&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Dartfishes&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Eellike gobies&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Gobies&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Loach gobies&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Odontobutidae&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Sandfishes&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Schindleriidae&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Sleepers&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;li&gt;&lt;a href="#"&gt;Xenisthmidae&lt;/a&gt;&lt;/li&gt;
<i> </i> &lt;/ul&gt;
<i> </i>&lt;/li&gt;

&lt;/ul&gt;

&lt;/body&gt;
&lt;/html&gt;
×

Success!

Help @Kitty_Kat 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 4.26,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...