/    Sign up×
Community /Pin to ProfileBookmark

Creating an interactive menu? Help?

I’m trying to create a simple menu but since I don’t know javascript, I’m not quite qualified in creating one, but I’m learning. I can understand javascript as its quite similar to other languages I’ve studied. So if you guys could help me it would mean alot to me, I need it for my webpage.

Ok think of a menu with two buttons, lets call them Button1 and Button2


————————————–

Button1 || Button2 ||
————————————–


Its basicly a table, once you click Button1 it turns black and the text white, and its liek if its selected. Then a small bar appears under it, abit like the following:
————————————


Element1 || Element2 || Element 3 ||
————————————

and antoher bar for Button2.

Thats what I’m trying to accomplish, could you guys give me an example? That would be great if you could ?

to post a comment
JavaScript

1 Comments(s)

×

Success!

Help @Kelphyr 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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