Onmouseover Change Image Size

Posted by topdog 811 days ago Questions| image size change All
I wasn't quite sure weather to put this under CSS or Javascript, so replace it if you must.

What I am trying to do is change certain style's of an image when someone hovers over the image, I did get to work that the image shifts from opacity, but not I am trying to add a size to it, but I can't get it to function acordingly.

CODE
<img src="images/trob.png" width="150px" height="150px" name="trob" class="fade" alt="trob" onmouseover="trob.style.opacity=1; trob.filters.alpha.opacity=100;  trob.style.width='300px'; trob.style.height='300px';" onmouseout="this.style.opacity=0.3; this.filters.alpha.opacity=30;  trob.style.width='150px'; trob.style.height='150px';" />


Did I forget something here or? cause I can't get it to work somehow.
Discuss Bury


Who Voted for this Question