Kurashu
05-22-2005, 08:11 PM
Ok here's my problem. I have a list and when I hover an item on this list I want to change the background of a div underneath of this list. Something like this...
<div id="container">
<ul>
<li id="li1">Stuff</li>
<li id="li2">More Stuff</li>
<li id="li3">Even More Stuff</li>
</ul>
<div id="img"></div>
</div>
I tried to use ul #li1 #img and realized that the span would have to be nested in the list item, I thought of using the adjacent operator (#li1+#img), but the span is not directly after the list item.
So any thoughts? I'm sure there is a none javascript solution for this; if there isn't I'll just have to find something else to do.
<div id="container">
<ul>
<li id="li1">Stuff</li>
<li id="li2">More Stuff</li>
<li id="li3">Even More Stuff</li>
</ul>
<div id="img"></div>
</div>
I tried to use ul #li1 #img and realized that the span would have to be nested in the list item, I thought of using the adjacent operator (#li1+#img), but the span is not directly after the list item.
So any thoughts? I'm sure there is a none javascript solution for this; if there isn't I'll just have to find something else to do.