1. childNodes[] is inconsistent among browsers. Some browsers, like Mozilla, count all the possible text nodes (the "gaps" between the tags) as childNodes, others, like IE, count only some of them or none. As a result childNodes[1] might designate different elements, according to the browser. Use getElementsByTagName() instead.
2. A DIV element is a block level element, thus it can not have the display inline. You should use the value: block
Is this what you want?
Code:
<div>
<a id="kj" href="kkjklj.com" onmouseover="this.parentNode.getElementsByTagName('div')[0].style.display='block';"
onmouseout="this.parentNode.getElementsByTagName('div')[0].style.display='none';">kjlj</a>
<div class="dg">
<a href="kjlj.com">lkjefee</a>
<a href="ehfueh.com">fheufheuih</a>
</div>
</div>
Bookmarks