nicolas704
mercredi 24 mai 2006 à 08:39
Je vais te donner le code source de la page que je suis en train de faire pour que tu puisse voir pourquoi celà ne fonctionne pas
CODE
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="body1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.Style1 {color: #FFFFFF}
.Style2 {
font-family: Tahoma;
font-size: 12px;
}
.Style3 {
color: #000000;
font-family: Tahoma;
}
-->
</style>
</head><body>
<div id="global">
<script type="text/javascript">
<!--
function ouvrir() {
fenetre=window.open("Photos Villas Corse/Image000_1.jpg.jpg","fenetre","resizable=no,scrollbars=no,location=no,width=700,height=525,top=0,left=0")
}
// -->
</script>
<script type="text/javascript">
<!--
function ouvrir2() {
fenetre=window.open("images/carte.jpg","fenetre","resizable=no,scrollbars=no,location=no,width=510,height=590,top=0,left=0")
}
// -->
</script>
<body onload="MM_preloadImages('HOME2.jpg','CONTACT2.jpg','HOME2.jpg','menu/HOME2.jpg','menu/CONTACT.jpg')">
<table width="732" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<!--DWLayoutTable-->
<tr>
<td height="174" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="753" height="135" valign="top"><p><img src="banniere/banniere-photo.jpg" alt="bannière" width="753" height="174" /></p> </td>
</tr>
</table> </td>
</tr>
<tr>
<td height="61" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#99CC33">
<!--DWLayoutTable-->
<tr>
<td width="251" valign="top"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image18','','HOME2.jpg',1)"></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','HOME2.jpg',1)"></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','HOME2.jpg',1)"></a><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','menu/HOME2.jpg',1)"><img src="menu/HOME.jpg" name="Image16" width="251" height="61" border="0" id="Image16" /></a></td>
<td width="251"><img src="menu/PHOTO2.jpg" alt="photo" width="251" height="61" /></td>
<td width="252" height="37"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','CONTACT.jpg',0)"></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','CONTACT2.jpg',1)"></a><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image18','','menu/CONTACT.jpg',1)"><img src="menu/CONTACT2.jpg" name="Image18" width="251" height="61" border="0" id="Image18" /></a><a href="contact.html"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td width="10" height="13"></td>
<td width="733"></td>
<td width="12"></td>
</tr>
<tr>
<td height="843"></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="733" align="center" valign="top"><p align="center"><a href="java script:ouvrir()" target="_top"
onmouseout="window.status=' '; return true"><img src="Photos Villas Corse/Image000_1.jpg" alt="la villa" width="320" height="170" border="0"/> </a>
</p></td>
<td width="733" height="196" align="center" valign="top"><img src="Photos Villas Corse/Image005_6.jpg" alt="image2" width="320" height="170" border="2" /></td>
</tr>
<tr>
<td align="center" valign="top"><img src="Photos Villas Corse/Image007_8.jpg" alt="image3" width="320" height="170" border="2" /></td>
<td height="196" align="center" valign="top"><img src="Photos Villas Corse/Image008_9.jpg" alt="image4" width="320" height="170" border="2" /></td>
</tr>
<tr>
<td align="center" valign="top"><img src="Photos Villas Corse/Image009_10.jpg" alt="image5" width="320" height="170" border="2" /></td>
<td height="196" align="center" valign="top"><img src="Photos Villas Corse/Image010_11.jpg" alt="image6" width="320" height="170" border="2" /></td>
</tr>
<tr>
<td align="center" valign="top"><img src="Photos Villas Corse/Image018_19.jpg" alt="image7" width="320" height="170" border="2" /></td>
<td height="196" align="center" valign="top"><img src="Photos Villas Corse/Image031_32.jpg" alt="image8" width="320" height="170" border="2" /></td>
</tr>
<tr>
<td align="center" valign="top" bordercolor="2"><img src="Photos Villas Corse/Image032_33.jpg" alt="image9" width="320" height="170" border="2" /></td>
<td height="199" align="center" valign="top" bordercolor="2"><img src="Photos Villas Corse/Image033_34.jpg" alt="image10" width="320" height="170" border="2" /></td>
</tr>
<tr>
<td align="center" valign="top"><img src="Photos Villas Corse/Image000_1.jpg" alt="image11" width="320" height="170" border="2" /></td>
<td height="204" align="center" valign="top"><img src="Photos Villas Corse/Image012_13.jpg" alt="image12" width="320" height="170" border="2" /></td>
</tr>
<tr>
<td align="center" valign="top"><img src="Photos Villas Corse/Image011_12.jpg" alt="image13" width="320" height="170" border="2" /></td>
<td height="59" align="center" valign="top"><img src="Photos Villas Corse/Image024_25.jpg" alt="image15" width="320" height="170" border="2" /></td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td height="21"></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="22" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#666666">
<!--DWLayoutTable-->
<tr>
<td width="534" height="22" align="center" valign="middle"><div align="center" class="Style1 Style2">
<div align="right"></div>
</div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Merci
[edit modérateur]Merci d'utiliser la balise Codebox pour les morceaux de code "long"[/edit]