Salut,
J'ai un gros problème avec mes infobulles... Elles sont comprises dans un JS qui a ces paramètres (obligatoires) :
Citation :
width="660px"
height="80px"
|
Ce JS est lui même intégré dans du PHP par :
Citation :
echo '<SCRIPT LANGUAGE="JavaScript">...</script>'
|
Le problème c'est que quand je passe sur le déclencheur, les infobulles ne sortent pas du cadre de width="660px" height="80px", donc leur contenu est caché ! Ma question est : comment faire sortir l'infobulle du cadre (équivalent à une iframe sûrement) ?
Voici comment j'appelle le CSS :
Citation :
<a class=\"thumbnail\" href=\"recherche.php?mot=$titre\"><img border=\"0\" height=\"80\" width=\"60\" src=\"'.$resultat['image'].'\">'.addslashes($data).' <span><font style=\"color:#0000FF;\">site</font><br><img border=\"0\" height=\"200\" width=\"150\" src=\"'.$resultat['image'].'\"><br />'.$resultat['titre'].'<br /><br /><div bgcolor=\"#FFFFFF\">Aperçu :<br /><br /></div></span></a>
|
Et voici le CSS :
Citation :
<style type="text/css">
.thumbnail{
text-decoration: none;
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #000;
padding: 5px;
left: -1000px;
border: 1px solid gray;
overflow:hidden;
width:160px;
height:345px;
visibility: hidden;
color: white;
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 0px; /*position where enlarged image should offset horizontally */
}
</style>
|
Merci pour votre aide, je désespère depuis 2 jours...