/    Sign up×
Community /Pin to ProfileBookmark

Need help with JS Menu (total noob)

Hello, i’m trying to develop a website with the following basic format (ignore the periods):

Intro………………………….. Intro Text

[U]Heading1[/U]………………………blah blah blah blah blah
[U]Heading2[/U]
[U]Heading3[/U]

—basically, a menu on the left and a main text body on the right. However, when you click on a heading, some sub-menus show up, and the main text changes, like so:

[U]Intro[/U]………………………Heading 1
Heading1…………………sub heading1 text blah talk talk
…sub heading1
[U]sub heading2[/U]
[U]Heading2[/U]
[U]Heading3[/U]

So it’s like going to another page, but it’s all in one html document. Additionally, it would be great if the items in the left-hand side menu were links in that the cursor is a hand and not the text-cursor.

I think there is a way to do this with div’s using the display:none style, but i don’t know how to do the javascript part. Also, keep in mind i’m a pretty big noob, so i don’t know all of the basic syntax, let alone advanced stuff, so the more explanation the better. I really appreciate it, thank you all!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@ansalon5Jun 23.2007 — The easiest way to do something like that from my experience is to check out one of the script websites and see if they have a pre-written script for what you are looking for.

I looked at Dynamic Drive and in their Menus & Navigation section they have a couple of menus that fit the general theme of what you want to accomplish. Check out the switch menus... http://www.dynamicdrive.com/dynamicindex1/

Zak
×

Success!

Help @Dudecles 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.18,
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,
)...