







|
|
|
 |
| > pbl avec un menu dynamique |
[ Posté par marion ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 13-10-2001 à 00:01 | 1 messages ]
  salut,
J'ai quelques problèmes avec onmouseover et onmouseout. Je veux créer
un menu où lorsqu'on passe le curseur sur les Titre1, titre2, etc,
les liens correspondants s'affichent en dessous. Dans ce genre là :
Titre1 Titre2 etc
monlien1 monlienA etc
monlien2 monlienB etc
monlien3 monlienC etc
Je précise que ce menu se trouve dans un frame horizontal.
J'y suis presque arrivé en utilisant ce code
<!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.0//EN">
<head>
<style type='text/css'>
A:link{font: 9pt Arial; color:red;text-decoration:none;}
A:visited{font: 9pt Arial; color:red;text-decoration:none;}
A:hover{font: 9pt Arial; color:red;text-decoration:none}
</style>
</head>
<body bgcolor=yellow>
<table border='0' width='130' cellpadding=0 cellspacing=0 height='100'
onMouseOver="bgColor='red'" onMouseout="bgColor=''">
<tr>
<td bgColor="red">
<font color='yellow'><B><center>Le R.C.G.G.</center></b></font>
<td bgColor="red">
<font color='yellow'><B><center>Les équipes</center></b></font>
</td>
<tr>
<td onMouseOver="bgColor='red'" onMouseout="bgColor=''">
<a href="bureau.htm"><font color=yellow>Le bureau</font></a>
</td>
<td onMouseOver="bgColor='red'" onMouseout="bgColor=''">
<a href="senior.htm"><font color=yellow>Les seniors</font></a>
</td>
<tr>
<td onMouseOver="bgColor='red'" onMouseout="bgColor=''">
<a href="historique.htm"><font color=yellow>L'historique</font></a>
</td>
<td onMouseOver="bgColor='red'" onMouseout="bgColor=''">
<a href="junior.htm"><font color=yellow>junior</font></a>
</td>
<tr>
<td onMouseOver="bgColor='red'" onMouseout="bgColor=''">
<a href="partenaire.htm"><font color=yellow>Nos partenaires</font></a>
</td>
<td onMouseOver="bgColor='red'" onMouseout="bgColor=''">
<a href="cadet.htm"><font color=yellow>cadets</font></a>
</td>
</tr>
</table>
</body>
mais lorsqu'on passe le curseur sur le titre1, c'est tout les liens
qui s'affichent. Je n'arrive pas à séparer les colonnes.
Comment fait-on?
 
|
[ Posté par Xenon_54 ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 13-10-2001 à 01:50 | 3264 messages ]
  J'ai sûrement ça dans mes affaires...
Je l'ai!!
Ce n'est pas comme ton code, mais je te l'envoie
<head>
<SCRIPT LANGUAGE="JavaScript">
function ChangeMessage(message,champ)
{
if(document.getElementById)
document.getElementById(champ).innerHTML = message;
}
</SCRIPT>
</head>
<body>
<A HREF="Entrez ici le chemin de la page" onMouseOver="ChangeMessage('Entrez ici le texte si survolé','lien_texte')" onMouseOut="ChangeMessage('','lien_texte')">Entrez ici le texte du lien</A><DIV ID=lien_texte></DIV>
</body>
________________ Génération PHP.net
|
|
Services email :
  Vous devez vous identifier pour profiter des services par email du forum.
|

|