SyntaxError
12-08-2006, 05:02 AM
I'm perplexed by this, knowing there is a possible way for it to work, though, I must be doing something wrong. I'll post my two thoughts on the methods, and if you can somehow debunk it, I would be greatly thankful.
CSS
li {display:none}
li:hover {display:block}
HTML
<ul>List
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
Method 2
CSS
li {display:none}
HTML
<ul onmouseover="li.style='display:block'" onmouseout="li.style='display:none'">List
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
I'm trying to make a drop-down menu with this, but it doesn't seem to be working. Thank you in advance for any help.
CSS
li {display:none}
li:hover {display:block}
HTML
<ul>List
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
Method 2
CSS
li {display:none}
HTML
<ul onmouseover="li.style='display:block'" onmouseout="li.style='display:none'">List
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
I'm trying to make a drop-down menu with this, but it doesn't seem to be working. Thank you in advance for any help.