-
Dropdown menu with Javascript onclick?
It works for me now Thanks Dizi... I'm gonna study the code and try some things now
-
Dropdown menu with Javascript onclick?
Yes you are fully right Dizi! I tried to change onmouseover to onclick but nothing appears when I click the link :s <ul id="sddm"> <li><a href="#" onclick="mopen('m1')" onmouseout="mclosetime()">Home</a>
-
Dropdown menu with Javascript onclick?
*edited
-
Dropdown menu with Javascript onclick?
Thanks for the links Dizi! But I kinda need one with onclick instead of mouseover etc =P
-
Dropdown menu with Javascript onclick?
I don't think it's easier or smarter to do a drop-down menu activated by click in css than Javascript. And I am learning javascript and that's why I want to do this Thanks for the replies so far. Waiting for Faevilangel to reply
-
Dropdown menu with Javascript onclick?
It didn't work for me. Did you try the code?
-
Dropdown menu with Javascript onclick?
Okay... So I am about to learn Javascript and I am wondering how the most simple way to create a dropdown menu with onclick in javascript is? I know how to make a dropdown menu in CSS but I want to make it with javascript now. Got any great tutorials? Tips? I was thinking something like this: When onclick is activated (on the mainlinks) the display attribute(for the submenus) will change it's value from none to block and vice versa... I want this as simple as possible for easier understanding Thanks in advance!
-
Dropdown menu on click possible with CSS only?
Thanks for your reply a.g.r.c
-
Dropdown menu on click possible with CSS only?
Javascript is really the way to go on this but it was a task from my teacher ;p Next task: Make this in javascript :| I know no javascript at all XDdddddd
-
Dropdown menu on click possible with CSS only?
Updated first topic with the solution! (The html and css code).
-
Dropdown menu on click possible with CSS only?
Is it possible to do this by combining active and focus somehow? I heard that someone in my class managed to do this.
-
Dropdown menu on click possible with CSS only?
Haha evil
-
Dropdown menu on click possible with CSS only?
So how would you do to link the options (without any javascript obviously)?
-
Dropdown menu on click possible with CSS only?
I have pretty much gotten the same answers from everyone. I guess it's a trick by the teacher =P I'll just do normal drop-down menus =p
-
Dropdown menu on click possible with CSS only?
I have just started college as a Web application developer. My teacher is an it-consultant and he tends to be very smart and good at what he's doing As Wickham said, it may be a trick question... I just want to know if someone knows for SURE that this is impossible with just css and xhtml. Thanks for all the replies, I'll keep waiting for answers... I have until wednesday next week to finish this Edit: Forgot to mention that it must be valid to xhtml 1.0 strict.