p2bc
09-08-2003, 04:21 AM
At present this is my code for some buttons:
<a href="website"><img src="pictures.png" onmouseover="this.height=39;this.width=42;"
onmouseout="this.width=37;this.height=34" width="37" height="34" alt=""></a>
So that when you roll over the button it enlarges a little to show the image better. But as it is now, the image look pixilated. So I did the reverse an saved the image at the larger size, and let the html file shrink the file to the smaller WxH. But that was disastrous. I looked worst than the pixilated image.
So here is my question, can I use both versions of the picture.
One for the mouseOut command, and one for the mouseOver command.
Something along the lines:
<a href="website"><img src="pictures.png" onmouseover=" <img scr=picture2.png height=39;this.width=42>"
onmouseout="<img scr=picture2.png width=37;this.height=34" width="37" height="34" alt=""></a>
I know the syntax is probably wrong. But is it possible???
If so, can you help out on the syntax.
Thanks
<a href="website"><img src="pictures.png" onmouseover="this.height=39;this.width=42;"
onmouseout="this.width=37;this.height=34" width="37" height="34" alt=""></a>
So that when you roll over the button it enlarges a little to show the image better. But as it is now, the image look pixilated. So I did the reverse an saved the image at the larger size, and let the html file shrink the file to the smaller WxH. But that was disastrous. I looked worst than the pixilated image.
So here is my question, can I use both versions of the picture.
One for the mouseOut command, and one for the mouseOver command.
Something along the lines:
<a href="website"><img src="pictures.png" onmouseover=" <img scr=picture2.png height=39;this.width=42>"
onmouseout="<img scr=picture2.png width=37;this.height=34" width="37" height="34" alt=""></a>
I know the syntax is probably wrong. But is it possible???
If so, can you help out on the syntax.
Thanks