Now there are a series of
Labels, each
There is a label inside the tag, start these a tag is hidden state, want to implement when the mouse on a certain Li above is, the inside of the a tag is shown to solve!!!
Reply to discussion (solution)
$ (this). Next (). Show ()
What about the structure? How is it hidden? Dispaly:none? Or the other?
You can do it with CSS.
Insert Title here
Easy with jquery.
Litest1Litest2Litest3 Li's hover, but there will be some problems under IE6.
There's a patch in the direction
Reply Ww_super:
That's how I wrote it:
$ (' #msglist Li '). MouseOver (function () {$ (this). Children ("a"). CSS ("Display", "block");}); $ (' #msglist Li '). Mouseout (function () {$ (this). Children (' a '). CSS ("display", "none");});
But when the mouse leaves, a does not show up to solve
Li's hover, but there will be some problems under IE6.
There's a patch in the direction
Although I do not do the front desk, but IE6--~
This is the JS code
$ (' #msglist Li '). MouseOver (function () {$ (this). Children ("a"). CSS ("Display", "block");}); $ (' #msglist Li '). Mouseout (function () {$ (this). Children (' a '). CSS ("display", "none");});
This is the HTML code
- X
{$vo 2. ToName}
{$vo 2. Addtime}
{$vo 2. MSG}
Why not achieve the effect?
Did you load jquery?
Like the example I gave you, put your JS code in
$ (document). Ready (function () {...}) Come inside!
This is to let you run the page and then execute JS, you start to execute JS, the page has not yet written those elements, the complete code is as follows
- X
{$vo 2. ToName}
{$vo 2. Addtime}
{$vo 2. MSG}
Don't understand....