[JS] Problem mit Javascript

Maina
So, wieder mal die Maina. Wer sonst? xD

Hab' mir von www.javaarea.de ein Script für mein Menü hergenommen, es klappt auch ganz gut, nur dass der Punkt 'Sonstiges' nicht... "ausgeklappt" wird xD

Code:

php:
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:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
<html>
<head>
<title></title>
<meta name="author" content="DScharf">
<link rel="stylesheet" href="http://hexl.he.funpic.de/pferd--/pferd1.css" type="text/css">
<style type="text/css">
<!--
.menu
{
    backgroundurl(hgm.gif);
    border0px solid #008;
    font-familyVerdana;
    positionabsolute;
    font-weightbold;
    padding-top3px;
    font-size10px;
    cursorpointer;
    width100px;
    color#000000;
}

.item_panel
{
    border-left0px solid #008;
    border-right0px solid #008;
    cliprect(015000);
    positionabsolute;
    width100px;
}

.item_panel a
{
    text-decorationnone;
    cursorpointer;
    color#000;
}

.item
{
    background-color#C4C8A3;
    font-familyVerdana;
    font-size10px;
    width98px;
}
//-->
</style>

<script type="text/javascript">
<!--
// www: http://www.javarea.de
// Copyright by javarea.de

// Link[nr] = 'position [0 is menu/1 is item] | Link name | url | target (blank|top|frame_name)'
var Link = new Array();

Link[0]  = '0|Home';
Link[1]  = '1|Refresh|home.htm|content';
Link[2]  = '1|Gästebuch|gb.htm|content';
Link[3]  = '1|Bildnachweis|http://hexl.he.funpic.de/pferd--/nachweis/|content';
Link[4]  = '1|Impressum|impressum.htm|content';
Link[5]  = '0|Das Zentrum';
Link[6]  = '1|Hofkasse|http://hexl.he.funpic.de/pferd--/hofkasse.htm|content';
Link[7]  = '1|Hoftiere|http://hexl.he.funpic.de/pferd--/hofhunde.php|content'
Link[8]  = '1|Hofkarte|http://hexl.he.funpic.de/pferd--/hof/hofuebersicht.htm|content';
Link[9]  = '1|Stallungen|http://hexl.he.funpic.de/pferd--/hof/stables/index.htm|content';
Link[10] = '1|Koppeln|http://hexl.he.funpic.de/pferd--/hof/koppeln/index.htm|content';
Link[11] = '0|Registrieren|';
Link[12] = '1|FAQ|http://hexl.he.funpic.de/pferd--/anmeldung/faq.htm|content';
Link[13] = '1|Regeln|http://hexl.he.funpic.de/pferd--/anmeldung/regeln.htm|content';
Link[14] = '1|Registrieren|http://hexl.he.funpic.de/pferd--/anmeldung/anmeldung.php|content';
Link[15] = '1|Jobs|http://hexl.he.funpic.de/pferd--/anmeldung/jobs.htm|content';
Link[16] = '0|Pferde|';
Link[17] = '1|Verkaufspferde|http://hexl.he.funpic.de/pferd--/pferde/indexx.htm|blank';
Link[18]  = '1|Kaufvertrag|http://hexl.he.funpic.de/pferd--/kaufvertrag.php|content';
Link[19]  = '1|Tierarzt|http://hexl.he.funpic.de/pferd--/horseordner/tierarzt.htm|content';
Link[20]  = '1|Hufschmied|http://hexl.he.funpic.de/pferd--/horseordner/hufschmied.htm|content';
Link[21]  = '1|Haltungskosten|http://hexl.he.funpic.de/pferd--/horseordner/kosten.htm|content';
Link[22]  = '1|Schicksal|http://hexl.he.funpic.de/pferd--/horseordner/schicksal.htm|content';
Link[23]  = '1|"Momentpferd"|http://hexl.he.funpic.de/pferd--/horseordner/horseminute.php|content';
Link[24]  = '0|Mitglieder';
Link[25] = '1|Forum|http://hexl.he.funpic.de/pferd--/wbblite|blank';
Link[26] = '1|LogIn|http://hexl.he.funpic.de/pferd--/login/login.htm|blank';
Link[27] = '1|Verzeichnis|http://hexl.he.funpic.de/pferd--/verzeichnis/index.htm|content';
Link[28] = '1|Probemitglieder|http://hexl.he.funpic.de/pferd--/verzeichnis/probies.htm|content';
Link[29] = '1|Geburtstage|http://hexl.he.funpic.de/pferd--/birthday.htm|content';
Link[30]  = '0|Sonstiges';
Link[31] = '1|Partner|http://hexl.he.funpic.de/pferd--/partner.htm|content';
Link[32] = '1|Enterbildergalerie|http://hexl.he.funpic.de/pferd--/enterarchiv.htm|content';
Link[34] = '1|Designmuseum|http://hexl.he.funpic.de/pferd--/designmuseum.htm|content';
Link[34] = '1|Awards|http://hexl.he.funpic.de/pferd--/awards.htm|content';
Link[34] = '1|Danke...|http://hexl.he.funpic.de/pferd--/danke.htm|content';
Link[34] = '1|In Arbeit|http://hexl.he.funpic.de/pferd--/work.htm|content';





var height    20// Hoehe der Menuekoepfe
var iheight   15// Hoehe der Menueelemente
var bgc       '#C4C8A3' // background color of the item
var over_bgc  'transparent';
var tc        '#000' // text color of the item
var over_tc   '#C4C8A3';
var speed     0;
var timerID   0;
var width     100;
var N         = (document.all) ? 1;
var self_menu = new Array();

function write_menu()
{
    smc   0;
    mn    0;
    mni   1;
    start = -1;

    document.write('<div style="position: absolute;">');

    for (var 0Link.lengthi++)
    {
        la Link[i].split('|');

        if (la[0] == 0)
        {
            if (start == 0)
            {
                document.write('</div>');

                csmc iheight;
                tmn mn// - h;
                self_menu[smc] = new Array(tmnh0, -2);

                smc++;
                mn--;
            }

            csmc 0;

            document.write('<div id="down' smc '" class="menu" '
                         'style="top: ' mn 'px; height: ' height 'px;" '
                         'onclick="pull_down(' smc ', ' mni ');">'
                         '  ' la[1] + '</div>');

            self_menu[smc] = new Array(mnheight0mni);

            smc++;
            mni++;
            mn += height;
            start 1;
        }
        else
        {
            if (start == 1)
            {
                if (N)
                    mn += 2;

                document.write('<div id="down' smc '" class="item_panel" '
                             'style="top: 'mn 'px;">');

                start 0;
            }

            document.write('<a href="' la[2] + '"'
                         + ((la[3] != '') ? ' target="' la[3] + '"' '')
                         + '><div id="d' '" class="item" '
                         'style="height: ' iheight 'px;'
                         + ((N) ? ' width:150px;' '')
                         + '" onmouseover="color(this.id);" '
                         'onmouseout="uncolor(this.id);">'
                         ' ' la[1] + '</div></a>');

            csmc++;
        }
    }

    if (start == 0)
    {
        document.write('</div>');

        =  csmc iheight;
        tmn mn 5// - h;
        self_menu[smc] = new Array(tmnh0);
        name 'down' + (self_menu.length 1);

        obj document.getElementById(name);
        obj.style.borderBottomColor '#008';
        obj.style.borderBottomWidth '1px';
        obj.style.borderBottomStyle 'solid';
    }

    document.write('</div>');
}

function color(obj)
{
    document.getElementById(obj).style.backgroundColor over_bgc;
    document.getElementById(obj).style.color over_tc;
}

function uncolor(obj)
{
    document.getElementById(obj).style.backgroundColor bgc;
    document.getElementById(obj).style.color tc;
}

function pull_down(nrc)
{
    if (timerID == '')
    {
        to self_menu[nr 1][1]
        begin nr 2;

        if (timerID != '')
            clearTimeout(timerID);

        if (self_menu[nr 1][2] == 0)
        {
            self_menu[nr 1][2] = 1;

            if (nr == (self_menu.length 2))
                to++;

            epull_down(beginto0);
        }
        else
        {
            to 0;
            self_menu[nr 1][2] = 0;
            name 'down' + (nr 2);
            open_item 0;

            for (var 0nri++)
                if (self_menu[i][2] == 1)
                    open_item += self_menu[i][1];

            if (== false)
                open_item -= (1);

            if (nr == (self_menu.length 2))
            {
                val self_menu[self_menu.length 1][1];
                to = -1;
            }
            else
                val parseInt(document.getElementById(name).style.top) - (open_item) - (height);

            epull_up(begintoval);
        }
    }
}

function epull_down(nrtonowv)
{
    name 'down' + (nr 1);
    obj document.getElementById(name).style.clip 'rect(0, ' width ', ' + (nowv 1) + ', 0)';

    for (var nrself_menu.lengthi++)
    {
        name 'down' i;
        obj document.getElementById(name);
        obj.style.top parseInt(obj.style.top) + 1;
    }

    nowv++;

    if (nowv to)
        timerID setTimeout('epull_down(' nr ', ' to ', ' nowv ');'speed);
    else
        timerID 0;
}

function epull_up(nrtonowv)
{
    name 'down' + (nr 1);
    obj document.getElementById(name).style.clip 'rect(0, ' width ', ' nowv ', 0)';

    for (var nrself_menu.lengthi++)
    {
        name 'down' i;
        obj document.getElementById(name);
        obj.style.top parseInt(obj.style.top) - 1;
    }

    nowv--;

    if(nowv to)
        timerID setTimeout('epull_up(' nr ', ' to ', ' nowv ');'speed);
    else
        timerID 0;
}

function startup(nr)
{
    write_menu();

    if (nr != 0)
    {
        for (var 0self_menu.lengthi++)
        {
            if (self_menu[i][3] == nr)
                pull_down(inr);

            == self_menu.length;
        }
    }
}
//-->
</script>

</head>
<body>

<script type="text/javascript">
<!--
startup(1);
//-->
</script>

</body>
</html>


Uuund die Seite, wo es nicht geht: http://hexl.he.funpic.de/pferd--/menuneu.htm


Danke smile

Maina
Kleiner Engel
89-92 ist alles Zeile [34]

Edit//siehe Jana
Maina
+donk+

Geht trotzdem nich unglücklich