Bonjour, je ne comprend pas pourquoi mon javascript ne marche pas sur ma page.
Voici un lien qui marche: lien qui marche
voici le lien qui ne marche pas:lien qui marche pas
Voici le code:
merci d'avance pour votre aide.
Modifié par mackean (13 Sep 2008 - 10:34)
Voici un lien qui marche: lien qui marche
voici le lien qui ne marche pas:lien qui marche pas

Voici le 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" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Echo'graphik - Webdesign Portofolio</title>
<LINK href="echo/echo.css" type=text/css rel=stylesheet>
<SCRIPT
src="test_fichiers/mootools-1.2-core.js"
type=text/javascript></SCRIPT>
<SCRIPT
src="test_fichiers/mootools-1.2-more.js"
type=text/javascript></SCRIPT>
<SCRIPT
src="echo/images.js"
type=text/javascript></SCRIPT>
</head>
<body>
<div id="all">
<div class="haut_de_page">
<img src="echo/logo_echo_graphik.jpg" width="489" height="89" /><img src="echo/light1.jpg" width="151" height="89"/><span id="menu_haut"><img src="echo/menu_light.jpg"/></span>
</div>
<div id="menu">
<img src="echo/onglet_news.jpg" /><img class="onglets" src="echo/onglet_portfolio.jpg" /><img class="onglets" src="echo/onglet_service.jpg" /><img class="onglets" src="echo/onglet_contact.jpg" /></div>
<div class="deco1">
<img src="echo/light2.jpg" width="134" height="28" />
</div>
<div id="titre_creation"><img src="echo/titrecrea.jpg" width="74" height="15" /></div>
<div id="haut_cadre">présentations des dernieres créations...</div>
<div id="gauche_cadre"><img src="echo/cadre_gauche_projets.jpg" width="31" height="209" /></div>
<div id="inter_cadre"></div>
<div id="droite_cadre"><img src="echo/cadre_droite_projets.jpg" height="209" width="29"/></div>
<div id="deco_cadre"> <img src="echo/deco_cadre.jpg" /></div>
<div id="bas_cadre"> <img src="echo/cadre_bas_projets.jpg" /></div>
<div id="section">
<div id="echo">
<img id="echo_titre" src="echo/echo_titre.jpg" />
<div id="cadre_echo"></div>
</div>
<div id="news">
<img id="titre_news" src="echo/news_titre.jpg" />
<div id="cadre_news">Créations en cours, projets,...</div>
</div>
<div id="contact">
<img src="echo/contact_titre.jpg" />
</div>
<div id="bas">
<img id="deco_bas1" src="echo/bandeau_bas_deco1.jpg" height="63" /><img id="deco_bas2" src="echo/bandeau_bas_deco2.jpg" height="63" />
</div>
<div id="band_bas"></div>
<div><img src="echo/bandeau_bas_deco3.jpg" /></div>
</div>
</body>
</html>
body{
background-color:#221305;
background-image:url(fond.jpg);
background-repeat:repeat-x;
margin:0 auto;
}
#all{
margin:0 auto;
width:980px;
}
.haut_de_page img {
vertical-align: bottom;
height:89px;
}
.haut_de_page{
height:89px;
text-align:center;
}
#menu_haut{
background-image:url(menu_light.jpg);
width:195px;
height:89px;
}
#menu{
margin-top:0;
background-image:url(bandeau_menu.jpg);
background-repeat:no-repeat;
padding-left:303px;
padding-top:2px;
width:980px;
height:36px;}
.onglets{
padding-left:2px;}
.deco1{
padding-left:150px;
margin:0;
vertical-align:bottom;
height:28px;}
#titre_creation{
padding-left:100px;
height:20px;
vertical-align:bottom;
}
#haut_cadre{
padding-left:103px;
color:#b0742c;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
font-weight:400;
height:38px;
background-image:url(cadre_haut_projets.jpg);
background-position:center;
background-repeat:no-repeat;
}
#gauche_cadre{
float:left;
padding-left:82px;
width:31px;
}
#inter_cadre{
background-color:#341d07;
float:left;
width:757px;
height:209px;}
#droite_cadre{
float:left;
width:29px;
height:209px;
}
#deco_cadre{
float:left;
width:75px;
height:209px;}
#bas_cadre{
padding-left:82px;
}
#section{
padding-left:83px;
}
#echo{
width:323px;
float:left;
}
#echo_titre{
text-align:left;
padding-left:30px;
}
#cadre_echo{
background-image:url(cadre_echo.jpg);
width:323px;
height:151px;
background-repeat:no-repeat;}
#news{
width:249px;
float:left;}
#titre_news{
padding-left:20px;}
#cadre_news{
background-image:url(cadre_news.jpg);
background-repeat:no-repeat;
width:249px;
height:174px;
color:#b0742c;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
font-weight:400;
padding-left:26px;
}
#contact{
float:left;
width:267px;
background-image:url(cadre_contact.jpg);
height:237px;}
#band_bas{
background-image:url(bandeau_bas.jpg);
background-repeat:no-repeat;
background-position:center;
background-position:top;
text-align:center;
height:43px;}
#bas img {
vertical-align: bottom;
}
#deco_bas1{
padding-left:40px;}
#deco_bas2{
padding-left:406px;}
var References = {
init: function(){
var items = $$('menu');
items.each(function(element){
var img = element.getElement('img');
img.setStyle('opacity', 0);
var imgFx = new Fx.Tween(img, { duration: 200, wait: false });
element.addEvent('mouseenter', function(){
imgFx.start('opacity', 1);
element.setStyle('cursor','pointer');
});
element.addEvent('mouseleave', function(){
imgFx.start('opacity', 0);
});
element.addEvent('click', function(){
window.location = element.getElement('a').getProperty('href');
});
});
}
};
var FileCz = {
init: function(){
// Reference
References.init();
}
};
window.addEvent('domready', function(){
FileCz.init();
});
merci d'avance pour votre aide.

Modifié par mackean (13 Sep 2008 - 10:34)