Bonjour @ tous,

Je viens vers vous pour demander de l'aide sur un probl�me qui me prends la t�te depuis pas mal de jours.

J'ai trouv� un script (je ne trouve plus le lien o�) pour un menu swichable et j'ai fait des changements pour l'adapter en le visualisant sur firefox. Tout march� bien! Mais quand je l'essaie sur internent explorer 6 �a ne marche pas du tout. Je suis bloqu� et je ne vois pas le probl�me. Je le dis tout de suite qu'en javascript je ne suis pas trop fort
Voici le script :

Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
 
<!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>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 
<!-- Javascript for the round corners and menu engine -->
<script type="text/javascript">
/**** FUCNTION FOR THE MENU ENGINE ****/
	startList = function() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("nav");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
		 			}
		  			node.onmouseout=function() {
		  				this.className=this.className.replace(" over", "");
		   			}
		   		}
		  	}
		 }
	}
	window.onload=startList();
</script>
<!-- SCRIPT FOR THE ROUND CORNERS -->
<script type="text/javascript" src="niftycube.js"></script>
<script type="text/javascript">
	NiftyLoad=function(){
		Nifty("div#test","big");
		Nifty("ul#nav li a","big transparent");
	}
</script>
 
<style type="text/css">
body {
	font-family: "Trebuchet MS";
	background-color:#dca13b;
	letter-spacing: 0px;
	font-weight: bold;
	text-align: center;
	font-size: small;
	padding: 0px;
	margin: 0px;	
	margin-top: -1px;
}
ul {
	margin: 0;
	padding: 0;;
	list-style: none;
	width:150px;
}
ul li {
	position: relative;
	width:148px;
	border: 3px solid #dca13b;
}
 
/* keep folowing styles together .........................*/
* html ul ul {margin-left:-16px;/* ie5 fix */ voice-family: "\"}\"";  voice-family: inherit; }	
* html ul li {float:left;/* hide float from ie5*/}
* html ul ul {width:148px;	voice-family: "\"}\""; voice-family: inherit;}
* html ul ul {margin-left:0;/* hide margin from ie5*/}
/* keep above styles together ............................*/
 
li ul {
	display:none;
	background-color:#dca13b;
}
li ul li{
	border: 2px solid #dca13b;
	padding-left: 0px;
	margin-left: -2px;
}
/* Styles for Menu Items */
ul li a {
	display:block;
	line-height:2em;
	height: 30px;
	padding: 0px;
	background: url(header/leer.jpg) 0 100% #dca13b;
	color: #552f08;
	text-decoration:none;
	text-align:center;
}
/* this sets all hovered lists to red */
li:hover a, li.over a, li:hover li a:hover, li.over li a:hover {
   color: #684c25;
   background: url(header/leer_white.jpg) 0 100%;
}
/* set dropdown to default */
/* the bg of the open submenu */
li:hover li a, li.over li a {
   	color: #d98525;
	background-image: url(header/leer.jpg);
}
/* Sub Menu Styles */
li ul li a {height: 25px;} 
 /* The magic */
li:hover ul, li.over ul {display:block;}
</style>
 
 
</head>
<body>
<ul id="nav">
	<li><a href="#">ALLGEMEINES</a>
	</li>
	<li><a href="../content-pages/geschichte.html" target="home">GESCHICHTE</a>	</li>
	<li><a href="#">LANDSCHAFTEN &darr; </a>
		<ul>
			<li><a href="#">Heide</a></li>
			<li><a href="#">Wald</a></li>
			<li><a href="#">Feuchtwiesen</a></li>
			<li><a href="#">Moore</a></li>
			<li><a href="#">Kleingewässer</a></li>
		</ul>
	</li>
	<li><a href="#">TIERE &darr; </a>
		<ul>
			<li><a href="#">Säugetiere</a></li>
			<li><a href="#">Vogelwelt</a></li>
			<li><a href="#">Insekten</a></li>
			<li><a href="#">Lurchen und Kriechtiere</a></li>
			<li><a href="#">Spinnen</a></li>
		</ul>
	</li>
	<li><a href="#">PFLANZEN &darr; </a>
		<ul>
			<li><a href="#">Gefäßpflanzen</a></li>
			<li><a href="#">Moose</a></li>
			<li><a href="#">Pilze</a></li>
		</ul>
	</li>
	<li><a href="#">LANDSCHAFTSPFLEGE &darr; </a>
		<ul>
			<li><a href="#">Beweidung mit Rindern</a></li>
			<li><a href="#">Beweidung mit Schlafen</a></li>
			<li><a href="#">Heumahd</a></li>
			<li><a href="#">Jagd</a></li>
			<li><a href="#">ERGEBNISSE</a></li>
		</ul>
	</li>
	<li><a href="#">GALERIE &darr; </a>
		<ul>
			<li><a href="#">Foto</a></li>
			<li><a href="#">Kunstgalerie</a></li>
		</ul>
	</li>
	<li><a href="#">PUBLIKATIONEN &darr; </a>
		<ul>
			<li><a href="#">Hefte</a></li>
			<li><a href="#">Weitere Publikationen</a></li>
		</ul>
	</li>
</ul>
</body>
</html>
Le script suivant sert pour faire les coins ronds (ce n'est pas ca le soucis)

Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
 
<!-- SCRIPT FOR THE ROUND CORNERS -->
<script type="text/javascript" src="niftycube.js"></script>
<script type="text/javascript">
	NiftyLoad=function(){
		Nifty("div#test","big");
		Nifty("ul#nav li a","big transparent");
	}
</script>
Mais pour ce qui sont intereses voici le lien vers le site de Nifty Corners http://www.html.it/articoli/niftycube/index.html

Vous pouvez voir le menu ici http://voskopoje.com/nature/layout/navigation-left.html

L'erreur sur ie est le suivant :

Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
 
 Line : 13
 Char : 14
 Error : Object Required
 Code : 0
Je vous remercie de l'aide !
Cdt