
Pourriez vous me donner un coup de main. Voici le code. D'avance Merci
<html>
<head>
<title>ASF - Entraide Humanitaire Catholique</title>
<script language="JavaScript">
var IsNet4,
IsIE4;
function deval( what ) { alert( what ); eval( what ); }
if ( navigator.appVersion.substring( 0, 1 ) >= 4 ) {
if ( navigator.appName == "Netscape" ) {
IsNet4 = true;
}
else if ( navigator.appName == "Microsoft Internet Explorer" ) {
IsIE4 = true;
}
}
function SetLayerVis( lay, vis ) {
if ( IsIE4 ) {
eval( "document.all." + lay + ".style.visibility = '" + vis + "';" );
}
else if ( IsNet4 ) {
eval( "document." + lay + ".visibility = '" + vis + "';" );
}
}
function SetLayerPos( lay, x, y ) {
if ( IsIE4 ) {
// eval( "document.all." + lay + ".style.pixelLeft = " + x + ";" );
// eval( "document.all." + lay + ".style.pixelTop = " + y + ";" );
eval( lay + ".style.pixelLeft = " + x + ";" );
eval( lay + ".style.pixelTop = " + y + ";" );
}
else if ( IsNet4 ) {
eval( "document." + lay + ".left = " + x + ";" );
eval( "document." + lay + ".top = " + y + ";" );
}
}
function WinEntries() {
this.link = new Array();
this.menu = new Array();
this.label = new Array();
this.div = new Array();
this.ypos = new Array();
this.vis = new Array();
}
function WinMenu( name ) {
this.name = name;
this.open = false;
this.entries = new WinEntries();
this.xpos = 0;
this.level = 0;
}
var SI = 0;
function SetIndents( menu ) {
SI++;
for ( var i = 0; i < menu.entries.menu.length; i++ ) {
if ( menu.entries.menu[ i ] ) {
menu.entries.menu[ i ].level = SI;
menu.entries.menu[ i ].xpos = menu.entries.menu[ i ].level * INDENT_SIZE;
SetIndents( menu.entries.menu[ i ] );
}
}
SI--;
}
// AddWinEntry
function AWE( winmenu, link, label, menu ) {
if ( menu ) {
winmenu.entries.menu[ winmenu.entries.menu.length ] = menu;
}
else
winmenu.entries.menu[ winmenu.entries.menu.length ] = null;
winmenu.entries.link[ winmenu.entries.link.length ] = link;
winmenu.entries.label[ winmenu.entries.label.length ] = label;
winmenu.entries.div[ winmenu.entries.div.length ] = winmenu.name
+ winmenu.entries.div.length.toString();
}
function SwitchMenu( menu ) {
menu.open = !menu.open;
if ( !menu.open )
Hide( menu );
}
function Hide( menu ) {
for ( var i = 0; i < menu.entries.link.length; i++ ) {
SetLayerVis( menu.entries.div[ i ], 'hidden' );
if ( menu.entries.menu[ i ] )
Hide( menu.entries.menu[ i ] );
}
}
var ENTRY_HEIGHT = 22,
INDENT_SIZE = 8,
OFFSETY = 90,
TOFFSETX = 1,
TOFFSETY = 0,
indownt = -ENTRY_HEIGHT;
function Reposition( menu ) {
for ( var i = 0; i < menu.entries.link.length; i++ ) {
indownt += ENTRY_HEIGHT;
SetLayerPos( menu.entries.div[ i ], menu.xpos + TOFFSETX, indownt + TOFFSETY + OFFSETY );
SetLayerVis( menu.entries.div[ i ], 'visible' );
if ( menu.level == 0 ) {
SetLayerPos( "B" + menu.entries.div[ i ], menu.xpos, indownt + OFFSETY );
SetLayerVis( "B" + menu.entries.div[ i ], 'visible' );
}
if ( menu.entries.menu[ i ] ) {
if ( menu.entries.menu[ i ].open )
Reposition( menu.entries.menu[ i ] );
}
}
}
var Bullet = new Image(),
BulEmpt = new Image(),
BulUp = new Image(),
BulDown = new Image();
Bullet.src = "bullet.gif";
BulEmpt.src = "bulempt.gif";
BulUp.src = "bulup.gif";
BulDown.src = "buldown.gif";
function BulletOver( lay, ismen ) {
if ( IsNet4 ) {
if ( ismen ) {
if ( ismen.open )
eval( "document." + lay + ".document.images[ 0 ].src = BulUp.src;" );
else
eval( "document." + lay + ".document.images[ 0 ].src = BulDown.src;" );
}
else
eval( "document." + lay + ".document.images[ 0 ].src = Bullet.src;" );
}
else {
if ( ismen ) {
if ( ismen.open )
eval( "document.images[ 'Bul" + lay + "' ].src = BulUp.src;" );
else
eval( "document.images[ 'Bul" + lay + "' ].src = BulDown.src;" );
}
else
eval( "document.images[ 'Bul" + lay + "' ].src = Bullet.src;" );
}
}
function BulletOut( lay ) {
if ( IsNet4 )
eval( "document." + lay + ".document.images[ 0 ].src = BulEmpt.src;" );
else
eval( "document.images[ 'Bul" + lay + "' ].src = BulEmpt.src;" );
}
var indent = 0,
BulIm = 0;
function WriteMenu( menu, menutop ) {
var thelink;
indent++;
if ( indent == 1 ) {
document.writeln( "<style type='text/css'>" );
for ( var i = 0; i < menu.entries.div.length; i++ ) {
document.writeln( "#B" + menu.entries.div[ i ]
+ " { position: absolute; visibility: visible; left: 0px; top: "
+ ( (i * ENTRY_HEIGHT) + OFFSETY ).toString() + "px; z-index: 1; } \n" );
document.writeln( "#" + menu.entries.div[ i ]
+ " { position: absolute; visibility: visible; left: " + TOFFSETX.toString() + "px; top: "
+ ( (i * ENTRY_HEIGHT) + OFFSETY + TOFFSETY ).toString() + "px; z-index: 2; font-family: Arial, sans-serif; font-size: 12px; } \n" );
}
document.writeln( "--></style>" );
}
for ( var i = 0; i < menu.entries.link.length; i++ ) {
var indspc = '',
oncl = '',
onb = '',
onbe = '',
tclass = '', bulimy = '',
bimg;
if ( menu.entries.link[ i ] )
thelink = menu.entries.link[ i ];
else
thelink = 'JavaScript:;';
oncl = "BulletOut( " + '"' + menu.entries.div[ i ] + '"' + " ); ";
if ( menu.entries.menu[ i ] ) {
oncl += " SwitchMenu( " + menu.entries.menu[ i ].name + " ); "
+ "indownt = -ENTRY_HEIGHT; Reposition( " + menutop.name + " );'";
bulimy = ", " + menu.entries.menu[ i ].name;
}
onb = "<b>";
onbe = "</b>";
if ( indent > 1 ) bimg = "menu_grey2.jpg";
else bimg = "button1.gif";
if ( menu.level == 0 ) {
onb += "<font color=#00000>"; onbe += "</font>";
document.writeln( "<div id='B" + menu.entries.div[ i ]
+ "'><a href='" + thelink + "' onClick='"
+ oncl + "' onMouseOver='BulletOver( "
+ '"' + menu.entries.div[ i ] + '"' + bulimy + " )' "
+ "onMouseOut='BulletOut( "
+ '"' + menu.entries.div[ i ] + '"' + " )'>"
+ "<img src='" + bimg + "' border=0></a></div>" );
tclass = '';
}
else tclass = "class='Abso' ";
document.writeln( "<div " + tclass + "id='" + menu.entries.div[ i ]
+ "'><nobr><img src='bulempt.gif' name='Bul" + menu.entries.div[ i ] + "'> <a href='" + thelink + "' onClick='"
+ oncl + "' onMouseOver='BulletOver( "
+ '"' + menu.entries.div[ i ] + '"' + bulimy + " )'"
+ " onMouseOut='BulletOut( "
+ '"' + menu.entries.div[ i ] + '"' + " )'>" + onb
+ menu.entries.label[ i ] + onbe + "</a></nobr></div>" );
BulIm++;
if ( menu.entries.menu[ i ] )
WriteMenu( menu.entries.menu[ i ], menutop );
}
indent--;
}
/**
* resize.js 0.3 970811
* by gary smith
* js component for "reloading page onResize"
*/
</script>
<base target="principal">
<style type="text/css">
<!--
.Back {
position: absolute;
visibility: hidden;
z-index: 1;
}
.Abso {
position: absolute;
visibility: hidden;
font-family: Arial, sans-serif;
font-size: 12px;
z-index: 2;
}
A { text-decoration: none; }
-->
</style>
<style type="text/css">
<!--
BODY {
SCROLLBAR-FACE-COLOR: #339966;
SCROLLBAR-HIGHLIGHT-COLOR: #77DDAA; //arriere-plan
SCROLLBAR-SHADOW-COLOR: #339966;
SCROLLBAR-3DLIGHT-COLOR: #333333;
SCROLLBAR-ARROW-COLOR: #FFFFFF; //couleur des fleche
SCROLLBAR-TRACK-COLOR: #339966;
SCROLLBAR-DARKSHADOW-COLOR: #FFFFFF
}-->
</style>
</head>
<body bgcolor="#FFFFFF" link="#336633" vlink="#336633" alink="#339966" background="../images/fond.jpg">
<div align="left"></div>
<div align="left">
<p align="left"> <a href="../inxdex.htm"><img src="../images/asfPt.gif" width="100" height="80" border="0"></a>
<script>
var M0 = new WinMenu( 'M0' );
M0.open = true;
//-1------------------------------------------------
//var histoire = new WinMenu( 'histoire' );
AWE( M0,'../histoire/h1.htm', 'Histoire');
//2------------------------------
//var who = new WinMenu( 'who' );
AWE( M0,'../histoire/qui.htm', 'Who’s Who');
//-3-------------------------------------------------------------------------
var activite = new WinMenu( 'activite' );
var forma = new WinMenu ('forma')
var vil = new WinMenu ('vil')
var sante = new WinMenu ('sante')
AWE( activite, '../actions/a1.htm', 'Enfance en détresse', forma );
AWE( forma,'../actions/so.htm', 'So Tchan Houé');
AWE( forma,'../actions/sj.htm', 'Soeur Jeannine');
AWE( activite, '../actions/a2.htm', 'Education / formation', vil);
AWE( vil,'../actions/materiel.htm', 'Materiel scolaire');
AWE( vil,'../actions/menuiserie.htm', 'Menuiserie');
AWE( vil,'../actions/Adamavo.htm', 'Tricycles');
AWE( activite, '../actions/a3.htm', 'Santé',sante );
AWE( sante,'../actions/lunettes.htm', 'Lunettes');
AWE( sante,'../actions/dispensaire.htm', 'Dispensaire');
AWE( sante,'../actions/ghana.htm', 'Ghana');
AWE( activite, '../actions/iv.htm', 'Inventaire');
AWE( M0,'../actions/a.htm', 'Les activités', activite );
//-4-----------------------------------------
//var agenda = new WinMenu( 'agenda' );
AWE( M0, '../agenda/agenda.htm', 'Actualités');
//-5-revue--------------------------------------------
var revue = new WinMenu( 'revue' );
var article = new WinMenu( 'article' );
AWE( revue, '../revue/a1.htm', 'Article(s)',article );
AWE( revue, '../revue/realisations.htm', 'Nos actions' );
AWE( revue, '../revue/prie.htm', 'Prière' );
AWE( revue, '../form/form.htm', 'Formulaire' );
AWE( revue, '../revue/Archives.htm', 'Archives' );
AWE( M0, '../revue/Archives.htm', 'Notre revue', revue );
//var 2euros = new WinMenu( 2'euros' );
AWE( M0, '../tract-okazoutil/tract-okazoutil.html', 'tract-okazoutil');
//var parte = new WinMenu( 'parte' );
AWE( M0,'../partenaires/p1.htm', 'Nos partenaires');
//var liens = new WinMenu( 'liens' );
AWE( M0, '../liens/liens.htm', 'Les liens');
//var rens = new WinMenu( 'rens' );
AWE( M0, '../rens/rens.htm', 'Renseignements' );
AWE( M0, 'mailto:asf.asso.humanitaire@club-internet.fr', 'Ecrivez nous' );
var mail = new WinMenu( 'mail' );
AWE( mail, '../mailing/mail.htm', 'Mailing List' );
//var cad = new WinMenu( 'cad' );
AWE( M0, '../cadeau/cadeau.htm', 'idée de cadeau' );
//var bourse = new WinMenu( 'bourse' );
AWE( M0, '../bourse/index.html', 'Bourse d’échange');
SetIndents( M0 );
WriteMenu( M0, M0 );
</script>
<script>
Reposition( M0 );
</script>
</p>
</div>
<noscript><BR>
Tu as besoin d'activer<BR>
JavaScript pour acceder au menu</noscript>
<p> </p>
</body>
</html>
Message envoyé avec : Mozilla/5.0 (Windows; U; Win98; fr; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12