Bonjour a tous,

J'ai un code javascript copie qui fonctionne bien sur le site web. Quand je l'insere dans des balises <head> </head> et le teste dans mon navigateur il ne s'execute pas.

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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!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="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>Tests</title>
	<script type="text/javascript">
	/*
   Deluxe Menu Data File
   Created by Deluxe Tuner v3.5
   http://deluxe-menu.com
*/
 
 
// -- Deluxe Tuner Style Names
var itemStylesNames=["Style1",];
var menuStylesNames=["ScrollSm",];
// -- End of Deluxe Tuner Style Names
 
//--- Common
var isHorizontal=0;
var smColumns=1;
var smOrientation=0;
var dmRTL=0;
var pressedItem=-2;
var itemCursor="pointer";
var itemTarget="_self";
var statusString="link";
var blankImage="images/blank.gif";
var pathPrefix_img="";
var pathPrefix_link="";
 
//--- Dimensions
var menuWidth="130px";
var menuHeight="";
var smWidth="";
var smHeight="";
 
//--- Positioning
var absolutePos=0;
var posX="10px";
var posY="10px";
var topDX=2;
var topDY=0;
var DX=2;
var DY=0;
var subMenuAlign="left";
var subMenuVAlign="top";
 
//--- Font
var fontStyle=["normal 10px Tahoma","normal 10px Tahoma"];
var fontColor=["#AEB5BF","#FFFFFF"];
var fontDecoration=["none","none"];
var fontColorDisabled="#AAAAAA";
 
//--- Appearance
var menuBackColor="#323F48";
var menuBackImage="";
var menuBackRepeat="repeat";
var menuBorderColor="";
var menuBorderWidth=0;
var menuBorderStyle="none";
 
//--- Item Appearance
var itemBackColor=["",""];
var itemBackImage=["images/btn_back_1.gif","images/btn_back_1o.gif"];
var beforeItemImage=["",""];
var afterItemImage=["",""];
var beforeItemImageW="";
var afterItemImageW="";
var beforeItemImageH="";
var afterItemImageH="";
var itemBorderWidth=0;
var itemBorderColor=["",""];
var itemBorderStyle=["solid","solid"];
var itemSpacing=0;
var itemPadding="3px";
var itemAlignTop="left";
var itemAlign="left";
 
//--- Icons
var iconTopWidth=4;
var iconTopHeight=15;
var iconWidth=4;
var iconHeight=15;
var arrowWidth=7;
var arrowHeight=7;
var arrowImageMain=["images/arr_white_2.gif",""];
var arrowWidthSub=0;
var arrowHeightSub=0;
var arrowImageSub=["images/arr_white_2.gif",""];
 
//--- Separators
var separatorImage="images/spacer.gif";
var separatorWidth="100px";
var separatorHeight="5px";
var separatorAlignment="center";
var separatorVImage="";
var separatorVWidth="5px";
var separatorVHeight="18px";
var separatorPadding="0px";
 
//--- Floatable Menu
var floatable=0;
var floatIterations=6;
var floatableX=1;
var floatableY=1;
var floatableDX=15;
var floatableDY=15;
 
//--- Movable Menu
var movable=0;
var moveWidth=12;
var moveHeight=20;
var moveColor="#DECA9A";
var moveImage="";
var moveCursor="move";
var smMovable=0;
var closeBtnW=15;
var closeBtnH=15;
var closeBtn="";
 
//--- Transitional Effects & Filters
var transparency="90";
var transition=28;
var transOptions="";
var transDuration=150;
var transDuration2=200;
var shadowLen=2;
var shadowColor="#373737";
var shadowTop=1;
 
//--- CSS Support (CSS-based Menu)
var cssStyle=0;
var cssSubmenu="";
var cssItem=["",""];
var cssItemText=["",""];
 
//--- Advanced
var dmObjectsCheck=0;
var saveNavigationPath=1;
var showByClick=0;
var noWrap=1;
var smShowPause=100;
var smHidePause=1000;
var smSmartScroll=1;
var topSmartScroll=0;
var smHideOnClick=1;
var dm_writeAll=0;
var useIFRAME=0;
var dmSearch=0;
 
//--- AJAX-like Technology
var dmAJAX=0;
var dmAJAXCount=0;
var ajaxReload=0;
 
//--- Dynamic Menu
var dynamic=0;
 
//--- Popup Menu
var popupMode=0;
 
//--- Keystrokes Support
var keystrokes=1;
var dm_focus=1;
var dm_actKey=113;
 
//--- Sound
var onOverSnd="";
var onClickSnd="";
 
var itemStyles = [
    ["itemWidth=150"],
];
var menuStyles = [
    ["smHeight=200"],
];
 
var menuItems = [
 
    ["HOME","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
    ["PRODUCT INFO","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|What's New","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Features","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Easy Installation ","", "images/spacer.gif", "", "", "", "0", "0", "", "", "", ],
            ["||Dynamic Menu","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Keystrokes Support","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Cross-frame Support","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Popup Mode","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Smart Scrollable Submenus","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||CSS Support","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Objects Overlapping","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Filters and Transitional Effects","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Individual Styles","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Movable & Floatable Menus","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Multilevel Menus","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Multicolumn Menus","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Several Menus on One Page","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||etc.","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Documentation","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Description of Files","", "images/spacer.gif", "", "Different .js files are loaded according to selected menu features.", "", "0", "", "", "", "", ],
            ["||Parameters Info","", "images/spacer.gif", "", "A lot of flexible parameters get you a fully customizable appearance of your menus.", "", "0", "", "", "", "", ],
            ["||How To Setup","", "images/spacer.gif", "", "Add several rows of code within html page - your menu is ready! Use Deluxe Tuner - visual interface that allows you to create your menus easily and in no time.", "", "0", "", "", "", "", ],
            ["||JavaScript API","", "images/spacer.gif", "", "Special JavaScript API for changing menu 'on-the-fly', without page reloading!", "", "0", "", "", "", "", ],
        ["|Browsers List","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Internet Explorer","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Firefox","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Mozilla","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Netscape","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Opera","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Safari","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
            ["||Konqueror","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|-","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Deluxe Tuner Application","", "images/spacer.gif", "", "Deluxe Tuner is a powerful application that gives you the full control over creation and customization of Deluxe Menu. It has a user-friendly interface that allows you to create your menus easily and in no time.", "", "0", "", "", "", "", ],
    ["MENU SAMPLES","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Sample 1","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Sample 2 (disabled)","", "images/spacer.gif", "", "", "_", "0", "", "", "", "", ],
        ["|Sample 3","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Sample 4","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Sample 5","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Sample 6","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Sample 7","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Sample 8","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Sample 9","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
    ["PURCHASE","", "images/spacer.gif", "", "", "_blank", "0", "", "", "", "", ],
        ["|Single Website License","", "images/spacer.gif", "", "Single website license allows you to use the menu on one Internet or Intranet site.", "", "0", "", "", "", "", ],
        ["|Multiple Website License","", "images/spacer.gif", "", "Multiple website license allows you to use the menu on any Internet or Intranet sites.", "", "0", "", "", "", "", ],
        ["|Developer License","", "images/spacer.gif", "", "Developer license allows you to use the menu on any Internet or Intranet sites and redistribute as a part of your own applications.", "", "0", "", "", "", "", ],
        ["|-","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
        ["|Free Non-Profit License","", "images/spacer.gif", "", "Non-profit license allows you to use the menu on 1 NON-PROFIT INTERNET website (NOT Intranet/local website).", "", "0", "", "", "", "", ],
    ["CONTACTS","", "images/spacer.gif", "", "", "", "0", "", "", "", "", ],
];
 
dm_init();
	</script>
</head>
<body>
</body>
</html>

L'erreur que j'obtiens se trouve dans le fichier attache.

Merci de votre aide