/    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

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"
&lt;html lang="en"&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;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 */
background: orange;
width: 10em;

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

#content {
clear: left;
color: #ccc;

&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;




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 9.23,
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: @ddiebold17,
tipped: article
amount: 1000 SATS,

tipper: @Mqlinka19,
tipped: live stream
amount: 4900 SATS,

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