My website has dynamically generated a
tags, each with its own corresponding div
containing unique content and height. I want to make it so that when a user hovers over an a
tag, the matching div
is displayed. The div
should appear at the position of the mouse cursor and grow upwards from bottom to top, since the links are located at the bottom of the page.
Below is an example of what the code looks like (where $z
is a counter):
<a href="<?php echo $link_djv;?>" class="rsshover" id="djvl_<?php echo $z;?>" target="_blank">
<li>
<p class="headline"><?php echo $title_djv;?></p>
</li>
</a>
<div class="preview" id="djvd_<?php echo $z;?>">
<?php echo $description_djv;?>
</div>
I have searched through various threads but haven't found a suitable solution to this problem yet. Any help would be greatly appreciated. Thank you!