I am currently trying to make it so that if i hover over the li
, the image changes its size. I managed to pull out a code from a website that changes the image size if i hover over the img
which looks like the following:
<div class="profiles">
<ul>
<li class="portraitsLeft" id="one" align="left">
<a href="../project/profile1.html">
<img src="../project/images/portraits/img1.jpg" width="100" onmouseover="this.width=150;" onmouseout="this.width=100" align="middle" alt="Img1"/>
</a>
Character 1
</li>
</ul>
</div>
What i don't understand is what this
is pointing at. I assumed it points at img
but it doesn't seem to work. How should I change the code so that i can change the image size when i hover over the li
or a
instead of this
? Thanks in advance.