javascript - Image mouseover get smaller (but they have same dimensions!) -


i'm having strange issue.

i have 2 images. first default source. when execute mouseover action, changes image, same original dimensions.

but when execute mouseover event, new image strangely gets smaller!

look example here, in "ca" image:

<a href="#"><img src="http://www.camona.com.br/ideaos/site/desenvolvimento/estudo3/images/svg/capreto2.svg" onmouseover="this.src='http://www.camona.com.br/ideaos/site/desenvolvimento/estudo3/images/svg/capreto1.svg'" onmouseout="this.src='http://www.camona.com.br/ideaos/site/desenvolvimento/estudo3/images/svg/capreto2.svg'"></a>  <a href="#"><img src="http://www.camona.com.br/ideaos/site/desenvolvimento/estudo3/images/svg/mopreto1.svg"></a>  <a href="#"><img src="http://www.camona.com.br/ideaos/site/desenvolvimento/estudo3/images/svg/napreto2.svg" onmouseover="this.src='http://www.camona.com.br/ideaos/site/desenvolvimento/estudo3/images/svg/napreto1.svg'" onmouseout="this.src='http://www.camona.com.br/ideaos/site/desenvolvimento/estudo3/images/svg/napreto2.svg'"></a> 

update: http://jsfiddle.net/snabp/2/

the 2 images have same dimensions:

http://www.camona.com.br/ideaos/site/desenvolvimento/estudo3/images/svg/capreto1.svg http://www.camona.com.br/ideaos/site/desenvolvimento/estudo3/images/svg/capreto2.svg


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -