[Resolvido] Ampliar imagem dentro de uma Div
Olá a todos.
Gostaria de saber como colocar este código de forma que a imagem que será ampliada fique numa div para que ao expandir não "empurre" a página.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml)
<head>
<script language="javascript"><!--
function aumenta(obj){
obj.height=obj.height*3;
obj.width=obj.width*3;
}
function diminui(obj){
obj.height=obj.height/3;
obj.width=obj.width/3;
}//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Aumentar o tamanho de uma imagem ao passar o mouse</title>
</head>
<body><center>
<p><img src="[http://www.boletimesportivo.net/images/noticias/819/Sao-PauloFC-LogoW.jpg"](http://www.boletimesportivo.net/images/noticias/819/Sao-PauloFC-LogoW.jpg) width="200" height="200" alt="SPFC" onMouseOver="aumenta(this)" onMouseOut="diminui(this)" />
</center>
</body>
</html>
Desde já agradeço.
Discussão (5)
Carregando comentários...