onMouseOver et onMouseOut pour une image
Posté : 07 sept. 2007, 00:00
Bonsoir,
Je ne comprends pas pourquoi mon image ne s'agrandit pas lorsque je passe ma souris sur l'image !!!
Quelqu'un pourrait-il m'aider svp ?
Voici mon code :
Je ne comprends pas pourquoi mon image ne s'agrandit pas lorsque je passe ma souris sur l'image !!!
Quelqu'un pourrait-il m'aider svp ?
Voici mon code :
<?php
include 'connexionbdd.php';
//include 'panier.php';
require 'lib/mes_fonctions_panier.inc.php';//PAS DE CROCHER mais des quotes !!!!!!!
$donnee = mysql_query("SELECT * FROM produit") or die(mysql_error());
while ($resultat = mysql_fetch_array($donnee))//affichage des résultats
{
$html = '<form action="index.php" method="post" size="170" id="voirpanier"><fieldset>';
$html.= '<img src="'.$resultat['url_photo'].' onMouseOver="this.style.width=400px" onMouseOut="this.style.height=150px""><br/><legend>'.$resultat['nom'].'</legend>';
$html.= '<br>'.$resultat ['prix_ht'].' euros X';
$html.= '<input type="text" name="quantite" value="1" size="1"/><input type="submit" name="panier" value="panier"/>';
$html.= '<br/>'.$resultat['description'].'<br/>Montant H.T. : '.montant_panier($_POST['panier']).'<br/>';
$html.= 'Modifier quantité :<input type="text"'.modif_qte($ref_article, $_POST['quantite']).'name="modif"/></fieldset></form>';
echo $html;
}
?>