|
|
|
|
Bonjour,
j'ai une galerie photo toute simple dont le code est celui ci :
je cherche a rajouter une legende qui changerait en meme temps un swap text ( je sais pas si ca existe)
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<p><img src="images/galeriefontaine/thumb_fontaine01.jpg" alt="fontaine01" width="75" height="42" onmouseover="MM_swapImage('fontaine_large','','images/galeriefontaine/fontaine01.jpg',1)" /> <img src="images/galeriefontaine/thumb_fontaine02.jpg" alt="fontaine02" width="75" height="42" onmouseover="MM_swapImage('fontaine_large','','images/galeriefontaine/fontaine02.png',1)" /> <img src="images/galeriefontaine/thumb_fontaine03.jpg" alt="fontaine03" width="75" height="42" onmouseover="MM_swapImage('fontaine_large','','images/galeriefontaine/fontaine03.png',1)" /> <img src="images/galeriefontaine/thumb_fontaine04.jpg" alt="fontaine04" width="75" height="42" onmouseover="MM_swapImage('fontaine_large','','images/galeriefontaine/fontaine04.png',1)" /> <img src="images/galeriefontaine/thumb_fontaine05.jpg" alt="fontaine05" width="75" height="42" onmouseover="MM_swapImage('fontaine_large','','images/galeriefontaine/fontaine05.png',1)" /> <img src="images/galeriefontaine/thumb_fontaine06.jpg" alt="fontaine06" width="75" height="42" onmouseover="MM_swapImage('fontaine_large','','images/galeriefontaine/fontaine06.png',1)" /> <img src="images/galeriefontaine/thumb_fontaine07.jpg" alt="fontaine07" width="75" height="42" onmouseover="MM_swapImage('fontaine_large','','images/galeriefontaine/fontaine07.png',1)" /></p>
<p> </p>
</div></td>
</tr>
<tr>
<td><div align="center"><img src="images/galeriefontaine/fontaine01.jpg" alt="fontaine_large" name="fontaine_large" width="697" height="397" id="fontaine_large" /></div></td>
</tr>
</table>
Configuration: Mac OS X Firefox 3.0.1n
Ooops y a ca ausi comme code jsute avant :
|
Répondre à dreamfeeder
|
Bsr
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="fr" lang="fr" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Gallerie</title> <style> * { font-family : arial; font-size : 12pt; } body { margin : 10px; padding : 0px; border : 0px; } .titre { font-weight : bold; } </style> <script> function ImageItem(url,txt) { this.url = url; this.txt = txt; } function ImageList(imgId,txtId) { this.imgId = imgId; this.txtId = txtId; this.items = new Array(); } ImageList.prototype.add = function(url,txt) { var item = new ImageItem(url,txt); this.items.push(item); return item; } ImageList.prototype.swap = function(index) { document.getElementById(this.imgId).src = this.items[index].url; document.getElementById(this.txtId).innerHTML = this.items[index].txt; } var imageList = new ImageList("fontaine_large","fontaine_txt"); function load() { imageList.add("images/galeriefontaine/fontaine01.png","Ceci est l'image 1"); // Image 0 imageList.add("images/galeriefontaine/fontaine02.png","Prise de vue du ...."); // Image 1 imageList.add("images/galeriefontaine/fontaine03.png","Zoom"); // Image 2 // Etc ... } </script> </head> <body onload="load()"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <div align="center"> <img src="images/galeriefontaine/thumb_fontaine01.jpg" alt="fontaine01" width="75" height="42" onmouseover="imageList.swap(0)" /> <img src="images/galeriefontaine/thumb_fontaine02.jpg" alt="fontaine01" width="75" height="42" onmouseover="imageList.swap(1)" /> <img src="images/galeriefontaine/thumb_fontaine03.jpg" alt="fontaine01" width="75" height="42" onmouseover="imageList.swap(2)" /> <br /> </div> </td> </tr> <tr> <td> <div align="center"><img src="images/galeriefontaine/fontaine01.png" alt="fontaine_large" name="fontaine_large" width="697" height="397" id="fontaine_large" /> <p id="fontaine_txt" class="titre">Ceci est l'image 1</p> </div> </td> </tr> </table> </body> </html> PhP Il y a 10 types de personnes dans le monde : ceux qui comprennent le binaire et les autres ... |
Bsr
|
Non ça veut juste dire que pour des raisons commerciales et de compatiblité Dreamweaver se doit d'interpréter correctement des pages conçues avec d'anciennes versions de DW pour d'anciens navigateurs. C'est la moindre des choses pour un soft payant.
|