BlackBoard (http://www.black-board.net/index.php)
- Design, Programmierung & Entwicklung (http://www.black-board.net/board.php?boardid=55)
-- Webdesign (http://www.black-board.net/board.php?boardid=19)
--- PHP menü (http://www.black-board.net/thread.php?threadid=20589)


Geschrieben von SANAKE am 10.06.2005 um 21:33:

  menü

also ich hab ein menü in drei spalten untereinander.

doch es funktioniert immer nur eine.

sind die dateien für alle 3 da funst nur die 1.

nehme ich die dateien für die 1 weg leuft die 2.

nehme ich die dateien für die 1 und 2 weg funst die 3.

einige werden sagen mach doch pr menü eine seite, das will ich aber nicht.

bei fragen einfach melden

danke schon mal fürs anschauen



Geschrieben von PygoscelisPapua am 10.06.2005 um 22:51:

  RE: menü

Zitat:
Original von SANAKE
bei fragen einfach melden


Hab ich eine Frage, oder hast Du eine Frage? Ich weiß nicht, wie oft es Dir schon gesagt wurde, aber Kristallkugeln sind zur Rarität geworden! Ich habs mal mit Tarot-Karten probiert, aber irgendwie kommt da bei mir bei Deinem Problem nur Clown raus.

Zitat:
Regeln sind zum LESEN da
2.2 Beiträge sollten in verständlicher Sprache verfasst werden. Das hilft nicht nur anderen, dein Problem zu verstehen, sondern letztendlich auch dir selbst, da du so schneller die gewünschte Hilfe bekommst.

2.3 Bei Problemen bitte die Lage genau schildern und vor dem Absenden den Beitrag noch einmal durchlesen und überlegen, ob man als Leser das Problem beim Durchlesen sofort erkennt.


Was erwartest Du denn, dass wir Dir hier sagen? Das es an der Variablen C liegt, die Du in Datei Y benutzt?
Wie wäre es denn mit Informationen, wie Browser, Programmiersprache [HTML? XHTML? PHP? JavaScript?], Deinen Quelltext?

Zitat:
Original von SANAKE
bei fragen einfach melden


Werd ich demnächst nicht mehr tun - Du bist derjenige, der was will, also stelle Deine Fragen so, dass man sie beim lesen auch sofort versteht! Ich hab beseres zu tun, als, um Dein Problem zu lösen, erstmal hinter den Informationen hinterher zu laufen, die Du mir verschweigst!

Zitat:
danke schon mal fürs anschauen


Das musst Du in der nächsten Zeit wirklich hinter jeden Deiner Posts stellen - ich werde Dich zumindest bei jedem weiteren Post dieser Art ignorieren, und Threads mit dem Threadersteller SANAKE garnicht erst lesen... Augen rollen



Geschrieben von Rudolf am 10.06.2005 um 22:56:

 

Ich finde deine Art auch echt dreist und respektlos dem Helfer gegenüber.



Geschrieben von SANAKE am 11.06.2005 um 20:17:

 

was ist jetz los ich hab nur den sachverhalt geschildert.

das meü ist in js und soll funktionieren, was es auch tut. nur eben nicht so wie es soll.

es soll so aussehen:

{spalte 1}
{spalte 2}
{spalte 3}

zu jedem der 3 spalten gibt es eine seite die "include2" ist.

lege ich alle drei dateien in den ordner, lädt er nur das erste menü.

die anderen beiden kommen nicht zum vorschein.

nehme ich die dateien für die 1 spalte aus dem ordner kommt beim aufrufen anstelle des ersten menüs eine hinweis meldun. [datei eksistiert nicht]
jedoch kann man nun die 2 spalte sehen. ( 3 fehlt weiterhin. )

entferne ich auch die dateien für die 2 spalte kommen 2 fehlermeldungen ( immer dort wo das menü hätte seien sollen ) und man kann das dritte menü sehen.

Zitat:
PHP Drop Down Menu 0.6
PHP code that generates a DHTML Drop Down Menu
INSTALL
Download file phpddm_0.6.zip ( 14Kb)
SYNOPSIS
Set margins to zero:

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

Configure menù in "phpddm.inc.php" and include the file:

<? include('phpddm.php'); ?>


FEATURES
Compatible with IE (5 > 6.x), Opera 5.x, Navigator (4 > 6.x) and Mozilla 1.x.
Set it on any positon (center if you like !)
MySQL version of phpddm.inc.php (config) now available !
STATUS
Version 0.6 (18 OCT 2003)
Licence GPL
Author Stefano SteO Arcidiacono (info@steo.it)

See steo/php for other script.


das hab ich, wenn es hilft.

ich habe einfach nen index genommen und die datein 3 mal erstellt. ( mit anderem namen.)

<? include('phpddm.php'); ?>
<? include('phpddm1.php'); ?>
<? include('phpddm2.php'); ?>

so schaut es aus.



das hier ist der index:

code:
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:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Download</TITLE>

<link rel="stylesheet" href="phpddm.css">
</HEAD>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<CENTER>
<div id="Layer1" style="position:left; width:500px; height:200px; z-index:1; overflow: visible; visibility: visible;">
<? include('phpddm.php'); ?>
</div>
</CENTER>

<CENTER>
<div id="Layer1" style="position:left; width:500px; height:200px; z-index:1; overflow: visible; visibility: visible;">
<? include('phpddm1.php'); ?>
</div>
</CENTER>

<CENTER>
<div id="Layer" style="position:left; width:500px; height:200px; z-index:1; overflow: visible; visibility: visible;">
<? include('phpddm2.php'); ?>
</div>
</CENTER>


</BODY>
</HTML>


und das die dateien für die menüs 1-3:

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:
<?
###############################################################################
#  - SteO Menu - Ver. 0.6php (18-OCT-03) [[URL]http://www.steo.it/php[/URL]]
#
#  Please give me any comment !
#
#  Copyright (c) 2001, Stefano SteO Arcidiacono - [EMAIL]info@steo.it[/EMAIL].
#
#  This file is distributed with General Public License.
#  Any derivatives of this software must remain OpenSource and
#  must be distributed at no charge.
#  (See license.txt for additional information)
#
###############################################################################

// Edit this file to configure PHP Drop Down Menu


# menu distance from top
    $PHPDDM['top'] = 0;
# submenu distance from top
    $PHPDDM['subtop'] = 50;
# submenu width
    $PHPDDM['width'] = 150;
# menu color
    $PHPDDM['mcolor'] = '#C0C0C0';
# menu over color
    $PHPDDM['mover'] = '#8C8C8C';
# submenu background color
    $PHPDDM['scolor'] = '#FFFFFF';
# submenu over color
    $PHPDDM['sover'] = '#C0C0C0';
# submenu background layer color (== submenu borders)
    $PHPDDM['lcolor'] = '#000000'; 


# phpddm_menu(TITLE, VTITLE, WIDTH, URL, TARGET)
#
# phpddm_submenu(TITLE, URL, TARGET)

$PHPDDM_menu[0] = new phpddm_menu('Help-Dateien und FAQs','Help-Dateien und FAQs', 100, '', '');
$PHPDDM_submenu[0][0] = new phpddm_submenu('FAQs und Nachschlagewerke', '', '');
$PHPDDM_submenu[0][1] = new phpddm_submenu('Anleitungen und Infotexte', '', '');

$PHPDDM_menu[1] = new phpddm_menu('Bugfixes und Updates','Bugfixes und Updates', 100, '', '');
$PHPDDM_submenu[1][0] = new phpddm_submenu('Office-Suiten', '', '');
$PHPDDM_submenu[1][1] = new phpddm_submenu('Windows 95', '', '');
$PHPDDM_submenu[1][2] = new phpddm_submenu('Windows 98/ME ', '', '');
$PHPDDM_submenu[1][3] = new phpddm_submenu('Windows NT', '', '');
$PHPDDM_submenu[1][4] = new phpddm_submenu('Windows 2000', '', '');
$PHPDDM_submenu[1][5] = new phpddm_submenu('Windows XP', '', '');
$PHPDDM_submenu[1][6] = new phpddm_submenu('Windows 2003  ', '', '');
$PHPDDM_submenu[1][7] = new phpddm_submenu('Windows Allgemein', '', '');
$PHPDDM_submenu[1][8] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[1][9] = new phpddm_submenu('', '', '');

$PHPDDM_menu[2] = new phpddm_menu('System','System', 100, '', '');
$PHPDDM_submenu[2][0] = new phpddm_submenu('Autostart und Shutdown  ', '', '');
$PHPDDM_submenu[2][1] = new phpddm_submenu('Rund um die Registry', '', '');
$PHPDDM_submenu[2][2] = new phpddm_submenu('Tuning und Aufräumen', '', '');
$PHPDDM_submenu[2][3] = new phpddm_submenu('Diagnose und Überwachung', '', '');
$PHPDDM_submenu[2][4] = new phpddm_submenu(' Benchmark', '', '');
$PHPDDM_submenu[2][5] = new phpddm_submenu('Laufwerke  ', '', '');
$PHPDDM_submenu[2][6] = new phpddm_submenu('Monitor und Grafikkarte', '', '');
$PHPDDM_submenu[2][7] = new phpddm_submenu('Peripherie', '', '');
$PHPDDM_submenu[2][8] = new phpddm_submenu('Sonstiges', '', '');
$PHPDDM_submenu[2][9] = new phpddm_submenu('DOS', '', '');
$PHPDDM_submenu[2][10] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[2][11] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[2][12] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[2][13] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[2][14] = new phpddm_submenu('', '', '');

$PHPDDM_menu[3] = new phpddm_menu('Sicherheit','Sicherheit', 100, '', '');
$PHPDDM_submenu[3][0] = new phpddm_submenu('Verschlüsselung und Passwörter  ', '', '');
$PHPDDM_submenu[3][1] = new phpddm_submenu('Zugriffsverwaltung', '', '');
$PHPDDM_submenu[3][2] = new phpddm_submenu('sicherer surfen', '', '');
$PHPDDM_submenu[3][3] = new phpddm_submenu('Malware', '', '');
$PHPDDM_submenu[3][4] = new phpddm_submenu('', '', '');

$PHPDDM_menu[4] = new phpddm_menu('Internet / DFÜ','Internet / DFÜ', 100, '', '');
$PHPDDM_submenu[4][0] = new phpddm_submenu('Browser und -erweiterungen', '', '');
$PHPDDM_submenu[4][1] = new phpddm_submenu('Favoriten ', '', '');
$PHPDDM_submenu[4][2] = new phpddm_submenu('E-Mail Clients', '', '');
$PHPDDM_submenu[4][3] = new phpddm_submenu('E-Mail Tools', '', '');
$PHPDDM_submenu[4][4] = new phpddm_submenu('News ', '', '');
$PHPDDM_submenu[4][5] = new phpddm_submenu('(Voice-) Chat ', '', '');
$PHPDDM_submenu[4][6] = new phpddm_submenu('ISDN, Fax', '', '');
$PHPDDM_submenu[4][7] = new phpddm_submenu('Einwahl, Traffic- und Kostenkontrolle', '', '');
$PHPDDM_submenu[4][8] = new phpddm_submenu('FTP-Clients, Downloadmanager ', '', '');
$PHPDDM_submenu[4][9] = new phpddm_submenu('File Sharing', '', '');
$PHPDDM_submenu[4][10] = new phpddm_submenu('Spurenvernichter', '', '');
$PHPDDM_submenu[4][11] = new phpddm_submenu('Rund um eBay', '', '');
$PHPDDM_submenu[4][12] = new phpddm_submenu('Suchtools, Offline-Reader', '', '');
$PHPDDM_submenu[4][13] = new phpddm_submenu('Sonstiges ', '', '');
$PHPDDM_submenu[4][14] = new phpddm_submenu('', '', '');

$PHPDDM_menu[5] = new phpddm_menu('Netzwerk- und Serveradministration','Netzwerk- und Serveradministration', 100, '', '');
$PHPDDM_submenu[5][0] = new phpddm_submenu('Web- & Mailserver, Proxies etc. ', '', '');
$PHPDDM_submenu[5][1] = new phpddm_submenu('Fernwartung ', '', '');
$PHPDDM_submenu[5][2] = new phpddm_submenu(' Monitoring & Inventarisierung', '', '');
$PHPDDM_submenu[5][3] = new phpddm_submenu('IP- & DNS-Tools', '', '');
$PHPDDM_submenu[5][4] = new phpddm_submenu('Skripte und -Sprachen', '', '');
$PHPDDM_submenu[5][5] = new phpddm_submenu('Sonstiges ', '', '');
$PHPDDM_submenu[5][6] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[5][7] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[5][8] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[5][9] = new phpddm_submenu('', '', '');

$PHPDDM_menu[6] = new phpddm_menu('Programmierung','Programmierung', 100, '', '');
$PHPDDM_submenu[6][0] = new phpddm_submenu('Rund ums Programmieren', '', '');
$PHPDDM_submenu[6][1] = new phpddm_submenu('Webeditoren und -design', '', '');
$PHPDDM_submenu[6][2] = new phpddm_submenu('Webverwaltung ', '', '');
$PHPDDM_submenu[6][3] = new phpddm_submenu('Sonstiges ', '', '');
$PHPDDM_submenu[6][4] = new phpddm_submenu('', '', '');

?>


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:
<?
###############################################################################
#  - SteO Menu - Ver. 0.6php (18-OCT-03) [[URL]http://www.steo.it/php[/URL]]
#
#  Please give me any comment !
#
#  Copyright (c) 2001, Stefano SteO Arcidiacono - [EMAIL]info@steo.it[/EMAIL].
#
#  This file is distributed with General Public License.
#  Any derivatives of this software must remain OpenSource and
#  must be distributed at no charge.
#  (See license.txt for additional information)
#
###############################################################################

// Edit this file to configure PHP Drop Down Menu


# menu distance from top
    $PHPDDM['top'] = 300;
# submenu distance from top
    $PHPDDM['subtop'] = 350;
# submenu width
    $PHPDDM['width'] = 150;
# menu color
    $PHPDDM['mcolor'] = '#C0C0C0';
# menu over color
    $PHPDDM['mover'] = '#8C8C8C';
# submenu background color
    $PHPDDM['scolor'] = '#FFFFFF';
# submenu over color
    $PHPDDM['sover'] = '#C0C0C0';
# submenu background layer color (== submenu borders)
    $PHPDDM['lcolor'] = '#000000'; 


# phpddm_menu(TITLE, VTITLE, WIDTH, URL, TARGET)
#
# phpddm_submenu(TITLE, URL, TARGET)

$PHPDDM_menu[0] = new phpddm_menu('Text und Office','Text und Office', 100, '', '');
$PHPDDM_submenu[0][0] = new phpddm_submenu('Office Programme ', '', '');
$PHPDDM_submenu[0][1] = new phpddm_submenu('Office-Vorlagen und -erweiterungen', '', '');
$PHPDDM_submenu[0][2] = new phpddm_submenu(' Outlook', '', '');
$PHPDDM_submenu[0][3] = new phpddm_submenu('Adressen, Termine und Kalender ', '', '');
$PHPDDM_submenu[0][4] = new phpddm_submenu('Bürohelfer', '', '');
$PHPDDM_submenu[0][5] = new phpddm_submenu('Fonts, Drucker, Labels', '', '');
$PHPDDM_submenu[0][6] = new phpddm_submenu('PDF und PostScript', '', '');
$PHPDDM_submenu[0][7] = new phpddm_submenu('Texteditoren', '', '');
$PHPDDM_submenu[0][8] = new phpddm_submenu('Finanztools ', '', '');
$PHPDDM_submenu[0][9] = new phpddm_submenu('', '', '');

$PHPDDM_menu[1] = new phpddm_menu('Datei-/ Datenmanagement','Datei-/ Datenmanagement', 100, '', '');
$PHPDDM_submenu[1][0] = new phpddm_submenu('Dateiviewer ', '', '');
$PHPDDM_submenu[1][1] = new phpddm_submenu('Explorerersatz und -erweiterungen', '', '');
$PHPDDM_submenu[1][2] = new phpddm_submenu('Synchronisation, Backup und Recovery ', '', '');
$PHPDDM_submenu[1][3] = new phpddm_submenu(' (Ent-)Packer und Splitter', '', '');
$PHPDDM_submenu[1][4] = new phpddm_submenu('Dateiverwaltung und Sonstiges', '', '');
$PHPDDM_submenu[1][5] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[1][6] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[1][7] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[1][8] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[1][9] = new phpddm_submenu('', '', '');

$PHPDDM_menu[2] = new phpddm_menu('Oberfläche','Oberfläche', 100, '', '');
$PHPDDM_submenu[2][0] = new phpddm_submenu('Bildschirmschoner', '', '');
$PHPDDM_submenu[2][1] = new phpddm_submenu('Desktop und Sonstiges ', '', '');
$PHPDDM_submenu[2][2] = new phpddm_submenu('Icons ', '', '');
$PHPDDM_submenu[2][3] = new phpddm_submenu('Startmenü und Tray', '', '');
$PHPDDM_submenu[2][4] = new phpddm_submenu('Shellerweiterungen ', '', '');
$PHPDDM_submenu[2][5] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[2][6] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[2][7] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[2][8] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[2][9] = new phpddm_submenu('', '', '');

$PHPDDM_menu[3] = new phpddm_menu('Multimedia','Multimedia', 100, '', '');
$PHPDDM_submenu[3][0] = new phpddm_submenu('Codecs', '', '');
$PHPDDM_submenu[3][1] = new phpddm_submenu('Audio', '', '');
$PHPDDM_submenu[3][2] = new phpddm_submenu('Audio-/Video Verwaltung ', '', '');
$PHPDDM_submenu[3][3] = new phpddm_submenu('Video', '', '');
$PHPDDM_submenu[3][4] = new phpddm_submenu('DVD', '', '');
$PHPDDM_submenu[3][5] = new phpddm_submenu('Player inkl. Plug-Ins', '', '');
$PHPDDM_submenu[3][6] = new phpddm_submenu('Brennen und Rippen', '', '');
$PHPDDM_submenu[3][7] = new phpddm_submenu('Radio und TV', '', '');
$PHPDDM_submenu[3][8] = new phpddm_submenu('Sonstiges ', '', '');
$PHPDDM_submenu[3][9] = new phpddm_submenu('', '', '');

$PHPDDM_menu[4] = new phpddm_menu('Grafik','Grafik', 100, '', '');
$PHPDDM_submenu[4][0] = new phpddm_submenu('Bildbearbeitung', '', '');
$PHPDDM_submenu[4][1] = new phpddm_submenu('Bildviewer und -Verwaltung  ', '', '');
$PHPDDM_submenu[4][2] = new phpddm_submenu('Bildschirmgrabber', '', '');
$PHPDDM_submenu[4][3] = new phpddm_submenu('Bildeffekte und Filter  ', '', '');
$PHPDDM_submenu[4][4] = new phpddm_submenu('Rendering und CAD', '', '');
$PHPDDM_submenu[4][5] = new phpddm_submenu('Sonstiges rund um Grafik', '', '');
$PHPDDM_submenu[4][6] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[4][7] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[4][8] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[4][9] = new phpddm_submenu('', '', '');

$PHPDDM_menu[5] = new phpddm_menu('Spiele','Spiele', 100, '', '');
$PHPDDM_submenu[5][0] = new phpddm_submenu('Action', '', '');
$PHPDDM_submenu[5][1] = new phpddm_submenu('Strategie', '', '');
$PHPDDM_submenu[5][2] = new phpddm_submenu('Denkspiele', '', '');
$PHPDDM_submenu[5][3] = new phpddm_submenu('Sonstiges', '', '');
$PHPDDM_submenu[5][4] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[5][5] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[5][6] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[5][7] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[5][8] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[5][9] = new phpddm_submenu('', '', '');


?>


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:
<?
#
#  This file is distributed with General Public License.
#  Any derivatives of this software must remain OpenSource and
#  must be distributed at no charge.
#  (See license.txt for additional information)
#
###############################################################################

// Edit this file to configure PHP Drop Down Menu


# menu distance from top
    $PHPDDM['top'] = 600;
# submenu distance from top
    $PHPDDM['subtop'] = 650;
# submenu width
    $PHPDDM['width'] = 150;
# menu color
    $PHPDDM['mcolor'] = '#C0C0C0';
# menu over color
    $PHPDDM['mover'] = '#8C8C8C';
# submenu background color
    $PHPDDM['scolor'] = '#FFFFFF';
# submenu over color
    $PHPDDM['sover'] = '#C0C0C0';
# submenu background layer color (== submenu borders)
    $PHPDDM['lcolor'] = '#000000'; 


# phpddm_menu(TITLE, VTITLE, WIDTH, URL, TARGET)
#
# phpddm_submenu(TITLE, URL, TARGET)

$PHPDDM_menu[0] = new phpddm_menu('Edutainment & Sonstiges','', 100, '', '');
$PHPDDM_submenu[0][0] = new phpddm_submenu('Rechnen', '', '');
$PHPDDM_submenu[0][1] = new phpddm_submenu('Sprache', '', '');
$PHPDDM_submenu[0][2] = new phpddm_submenu('Wissen', '', '');
$PHPDDM_submenu[0][3] = new phpddm_submenu('Emulatoren', '', '');
$PHPDDM_submenu[0][4] = new phpddm_submenu('Sonstiges', '', '');
$PHPDDM_submenu[0][5] = new phpddm_submenu('Linux-Ecke', '', '');
$PHPDDM_submenu[0][6] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[0][7] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[0][8] = new phpddm_submenu('', '', '');
$PHPDDM_submenu[0][9] = new phpddm_submenu('', '', '');

$PHPDDM_menu[] = new phpddm_menu('','', 100, '', '');

$PHPDDM_menu[] = new phpddm_menu('','', 100, '', '');

$PHPDDM_menu[] = new phpddm_menu('','', 100, '', '');

$PHPDDM_menu[] = new phpddm_menu('','', 100, '', '');

$PHPDDM_menu[] = new phpddm_menu('','', 100, '', '');

$PHPDDM_menu[] = new phpddm_menu('','', 100, '', '');


?>


dieses menü habe ich nur an dei nummer angepasst:

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:
<?
###############################################################################
#  - SteO Menu - Ver. 0.6php (18-OCT-03) [[URL]http://www.steo.it/php[/URL]]
#
#  Please give me any comment !
#
#  Copyright (c) 2001, Stefano SteO Arcidiacono - [EMAIL]info@steo.it[/EMAIL].
#
#  This file is distributed with General Public License.
#  Any derivatives of this software must remain OpenSource and
#  must be distributed at no charge.
#  (See license.txt for additional information)
#
###############################################################################


//
// >>> You don't need to edit this file <<<
//

print "<!-- PHP Drop Down Menu 0.4 by Stefano SteO Arcidiacono (ww.steo.it/php) -->\n";

class phpddm_menu {
     function phpddm_menu($title, $vtitle, $width, $url, $target) {
        $this->TITLE = $title;
        $this->VTITLE = $vtitle;
        $this->WIDTH = $width;
        $this->URL = $url;
        $this->TARGET = $target;
    }
}

class phpddm_submenu {
     function phpddm_submenu($title, $url, $target) {
        $this->TITLE = $title;
        $this->URL = $url;
        $this->TARGET = $target;
    }
}

require('phpddm.inc.php');

// Browser check 3.0
  unset($browser);
  $browser = 'ns'; // Default browser
  if (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'opera')) $browser = 'op';   
  elseif (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'msie 6')) $browser = 'ie6'; 
  elseif (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'msie')) $browser = 'ie'; 
  elseif (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'mozilla')) $browser = 'ns'; 
  if (stristr($_SERVER ['HTTP_USER_AGENT'],'Gecko/200') && (!(stristr($HTTP_USER_AGENT, 'compatible')))) $browser = 'ns6';

$Maxmenu = count($PHPDDM_menu) - 1;
$sum = 0;

for ($i=0; $i <= $Maxmenu; $i++ ) 
    {
    $PHPDDM_width[$i] = $PHPDDM_menu[$i]->WIDTH;
    $PHPDDM_pos[$i] = $sum; 
    $sum = $sum + $PHPDDM_width[$i];
    }

function vtitle($str) 
    {
    $return = '';
    for ($i=0; $i <= strlen($str); $i++) $return.= substr($str, $i, 1).'<br>'; 
    return $return;
    }

########################## Create main menu

unset($str);
$str = '';

if ($browser == 'op') $visibility = ''; else $visibility = 'visibility:hidden;';

$str.= '<div id="phpddmMenu" style="position:absolute; width:100%; top:'.$PHPDDM['top'].'; left:0;'.$visibility.'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr bgcolor="'.$PHPDDM['mcolor'].'">'; 

for ($i=0; $i <= $Maxmenu; $i++ ) 
    if ($browser == 'ns')  
        $str.= '<td width="'.$PHPDDM_width[$i].'" align="left"><ILAYER><LAYER width="'.$PHPDDM_width[$i].'" onmouseover="showMenu(\''.$i.'\'); bgColor='.$phpddm_mover.'" onmouseout="bgColor=\''.$PHPDDM['mcolor'].'\'"><a href="'.$PHPDDM_menu[$i]->URL.'" target="'.$PHPDDM_menu[$i]->TARGET.'"><span class="MENU">'.$PHPDDM_menu[$i]->TITLE.'</span></a></LAYER></ILAYER></td>';
    else  
        $str.= '<td bgcolor="'.$PHPDDM['mcolor'].'" width="'.$PHPDDM_width[$i].'" onmouseover="bgColor=\''.$PHPDDM['mover'].'\'; showMenu('.$i.')" onmouseout="bgColor=\''.$PHPDDM['mcolor'].'\'" align="left"><a href="'.$PHPDDM_menu[$i]->URL.'" target="'.$PHPDDM_menu[$i]->TARGET.'"><span class="MENU">'.$PHPDDM_menu[$i]->TITLE.'</span></a></td>'; 
        
if ($browser == 'ns') 
    $str.= "<td width=\"100%\">&nbsp;</td></tr></table></div>\n";  
else 
    $str.= "<td>&nbsp;</td></tr></table></div>\n";
    
print $str; 


######################## Create Submenu
// IE and NS version
$str = '';

for ($i=0; $i <= $Maxmenu; $i++) 
    {
    if (empty($PHPDDM_submenu[$i])) 
        $str.= '<div id="subMenu'.$i.'" style="position:absolute; width:0; height:0; top:0; left:0; visibility:hidden; z-index:99;"></div>';
    else 
        {
        $str.= '<div id="subMenu'.$i.'" style="position:absolute; left:'.$PHPDDM_pos[$i].'; top:'.$PHPDDM['subtop'].'; width:'.$PHPDDM['width'].';  background-color:black;layer-background-color:black; visibility:hidden; z-index:99;"';

        if ($browser == 'ns') 
            {
            $str.= '><table width="'.$PHPDDM['width'].'" border="0" cellspacing="0" cellpadding="0">';
            $str.= '<tr><td valign="top">';
            $str.= '<table bgcolor="'.$PHPDDM['lcolor'].'" border="0" width="100%" cellspacing="1" cellpadding="1">';
            } 
        elseif ($browser == 'ie6')  
            {
            $str.= 'onmouseout="hideMenu()"><table width="'.$PHPDDM['width'].'" border="0" cellspacing="0" cellpadding="0" onmouseover="showMenu('.$i.')">';
            $str.= '<tr><td width="15" bgcolor="#C0C0C0" align="center" valign="top" style="padding:0,0,0,0;border-color:black;border-style:solid; border-right:0;border-width:1"><span class="VMENU">'.vtitle($PHPDDM_menu[$i]->VTITLE).'</span></td><td valign="top">'; 
            $str.= '<table bgcolor="'.$PHPDDM['lcolor'].'" border="0" width="100%" cellspacing="1" cellpadding="1" onmouseover="showMenu('.$i.')">';
            }
        else
            {
            $str.= '><table width="'.$PHPDDM['width'].'" border="0" cellspacing="0" cellpadding="0">';
            $str.= '<tr><td width="15" bgcolor="#C0C0C0" align="center" valign="top" style="padding:0,0,0,0;border-color:black;border-style:solid; border-right:0;border-width:1"><span class="VMENU">'.vtitle($PHPDDM_menu[$i]->VTITLE).'</span></td><td valign="top">'; 
            $str.= '<table bgcolor="'.$PHPDDM['lcolor'].'" border="0" width="100%" cellspacing="1" cellpadding="1">';
            }
    
        for ($k=0; $k < count($PHPDDM_submenu[$i]); $k++) 
          if ($browser == 'ns')  
            $str.= '<tr><td bgcolor="'.$PHPDDM['scolor'].'"><ILAYER><LAYER width="100%" onmouseover="bgColor=\''.$PHPDDM['sover'].'\'" onmouseout="bgColor=\''.$PHPDDM['scolor'].'\'"><a href="'.$PHPDDM_submenu[$i][$k]->URL.'" target="'.$PHPDDM_submenu[$i][$k]->TARGET.'" class="SUBMENU">'.$PHPDDM_submenu[$i][$k]->TITLE.'</a></LAYER></ILAYER></td></tr>'; 
          elseif ($browser == 'ie6')   
            $str.= '<tr ><td bgcolor="'.$PHPDDM['scolor'].'" onmouseover="bgColor=\''.$PHPDDM['sover'].'\'" onmouseout="bgColor=\''.$PHPDDM['scolor'].'\'"><a href="'.$PHPDDM_submenu[$i][$k]->URL.'" target="'.$PHPDDM_submenu[$i][$k]->TARGET.'" class="SUBMENU" onmouseover="showMenu('.$i.')">'.$PHPDDM_submenu[$i][$k]->TITLE.'</a></td></tr>';
          else 
            $str.= '<tr><td bgcolor="'.$PHPDDM['scolor'].'" onmouseover="bgColor=\''.$PHPDDM['sover'].'\'" onmouseout="bgColor=\''.$PHPDDM['scolor'].'\'"><a href="'.$PHPDDM_submenu[$i][$k]->URL.'" target="'.$PHPDDM_submenu[$i][$k]->TARGET.'" class="SUBMENU">'.$PHPDDM_submenu[$i][$k]->TITLE.'</a></td></tr>';
                
        $str.= "</table></td></tr></table></div>\n";
        }
    }

print $str; 

############################ Javascript #############################
?>
<script language="JavaScript">

var sub_top = <?=$PHPDDM['top']?>;
var x = 0; var y = 0; 
var x1 = 0; var y1 = 0; 
var x2 = 0; var y2 = 0; 
var sel = 0; var temp;

<?
//######################## OPERA
if ($browser == 'op') 
    {
    for ($i=0; $i <= $Maxmenu; $i++) 
        {
         print "document.all['subMenu$i'].onmouseover=handlerMM;";
         print "document.all['subMenu$i'].onmouseout=handlerMM;";
        }
?>

function handlerMM(e) {
    if(!e)e=window.event;
    if(e.type=="mouseover")mouse=true;
    else{ mouse=false; setTimeout("hideMenu()",100) }
   }

function showMenu(x) {
    eval('document.all["subMenu'+sel+'"].style.visibility="hidden"');
    sel = x;
    eval('document.all["subMenu'+sel+'"].style.visibility="visible"');
   }

function hideMenu() {
    if(!mouse){    eval('document.all["subMenu'+sel+'"].style.visibility="hidden"');}
   }
<? 
//######################## Internet Explorer    
} elseif($browser == 'ie') {?>
    
       
function handlerMM(e) {
    x = event.clientX;
    y = event.clientY;
    temp = 'subMenu' + sel;    

    x1 = document.all[temp].style.posLeft; 
    x2 = x1 + document.all[temp].offsetWidth;
    y1 = document.all[temp].style.posTop;
    y2 = y1 + document.all[temp].offsetHeight;    

    if ((x <= x1) || (x >= x2) || (y >= y2))  { eval('document.all["subMenu'+sel+'"].style.visibility="hidden"') }
   }

function showMenu(x){
    eval('document.all["subMenu'+sel+'"].style.visibility="hidden"');
    sel = x;
    eval('document.all["subMenu'+sel+'"].style.visibility="visible"');
   }
   
document.onmousemove = handlerMM 
eval('document.all["phpddmMenu"].style.visibility="visible"');
<? 
//######################## Netscape Navigator    
} elseif($browser == 'ns') {?>
               
function handlerMM(e) {
    x = e.pageX 
    y = e.pageY
    temp = 'subMenu' + sel;    

    x1  = document.layers[temp].left;
    x2 = x1 + document.layers[temp].clip.width;
    y1  = document.layers[temp].top;
    y2 = y1 + document.layers[temp].clip.height;        
    
    if ((x <= x1) || (x >= x2) || (y >= y2))  { eval('document.layers["subMenu'+sel+'"].visibility="hidden"') }
}

function showMenu(x) {
    eval('document.layers["subMenu'+sel+'"].visibility="hidden"');
    sel = x;
    eval('document.layers["subMenu'+sel+'"].visibility="visible"');
   }

document.captureEvents(Event.MOUSEMOVE);   
document.onmousemove = handlerMM 
eval('document.layers["phpddmMenu"].visibility="visible"');
<? 
//######################## Netscape Navigator    
} elseif($browser == 'ns6') {?>
           
function handlerMM(e) {
    if (e.type=="mouseover") {     mHide=false; } else { mHide=true; setTimeout("hideMenu()",1000) }
}

function hideMenu() {
    if (mHide == true) {
        menu = "subMenu" + sel;
        document.getElementById(menu).style.visibility = "hidden";    
        }
    }

function showMenu(x) {
    menu = "subMenu" + sel;
    document.getElementById(menu).style.visibility = "hidden";
    sel = x;
    menu = "subMenu" + sel;
    document.getElementById(menu).style.visibility = "visible";
   }
 
<? 
    $str = '';

    for ($i=0; $i <= $Maxmenu; $i++) 
        {
         $str.= "document.getElementById(\"subMenu$i\").addEventListener(\"mouseout\", handlerMM, false);\n";
         $str.= "document.getElementById(\"subMenu$i\").addEventListener(\"mouseover\", handlerMM, false);\n";
        }
    $str.= "document.getElementById(\"phpddmMenu\").style.visibility = \"visible\";\n";
    print $str;
    
//######################## INTERNET EXPLORER DOM
} elseif($browser == 'ie6') {?>

sel=1;

function showMenu(x){
    eval('document.all["subMenu'+sel+'"].style.visibility="hidden"');
    sel = x;
    eval('document.all["subMenu'+sel+'"].style.visibility="visible"');
    window.event.cancelBubble=true
   }

function hideMenu(){
        eval('document.all["subMenu'+sel+'"].style.visibility="hidden"');
        window.event.cancelBubble=true
   }

eval('document.all["phpddmMenu"].style.visibility="visible"');

<? } 
?>
</script>


ich hoffe alle fragen sind beantwortet.

@exs=wo ist meine art dreist???

@PygoscelisPapua=mit fragen meinte ich ob ihr noch mehr infos zu irgendetwas braucht um das problem zu lokalisieren.

ich habe auch schon einem teil leute hier geholfen ) oder etwa nicht (



Geschrieben von LX am 11.06.2005 um 20:36:

Achtung

Und warum nicht gleich so? Nun sieht man wenigstens auf Anhieb, was du versuchst zu tun. "Ich erstelle da ein Menü und das geht nicht" ist nicht gerade eine genaue Beschreibung.

Zu deinem Problem: Du verwendest diese 3 Dateien, allerdings werden in allen 3 dieselben Variablen deklariert (nur eben mit anderem Inhalt). Daher ist es klar, dass sich die einzelnen Menüs letztendlich in die Quere kommen, denn ausgewertet wird der ganze Teil nur einmal.

Wenn du unbedingt weiter diese Lösung verwenden willst, benenne die Variablen eindeutig, beispielsweise für das erste Menü $PHPDDM1['top] oder $PHPDDM1_submenu[...] usw. Dann musst du natürlich auch noch den Aufruf der Klassen anpassen.

Das Board hat übrigens bestimmte Tags, um (PHP-)Code entsprechend zu formatieren. Ich passe das in deinem Beitrag mal an, wär aber schön, wenn du das künftig auch schon selbst machen könntest.



Geschrieben von SANAKE am 12.06.2005 um 08:38:

 

würde ichgerne tun wen du mir erklärst wie.

es tut mir leid aber ich verstehe nicht ganz genau was du meinst.

bin nur hobby programierer.



Geschrieben von theromi am 12.06.2005 um 09:20:

 

Zitat:
Original von SANAKE
würde ichgerne tun wen du mir erklärst wie.

es tut mir leid aber ich verstehe nicht ganz genau was du meinst.

bin nur hobby programierer.

Du musst die Variabelen in deinem Quellcoe ändern... Wo liegt das Problem?



Geschrieben von phlox81 am 12.06.2005 um 11:39:

 

Zitat:
Original von theromi
Wo liegt das Problem?


Er müsste erstmal PHP lernen %)

Devil



Geschrieben von SANAKE am 12.06.2005 um 15:12:

 

das problem ist:

ich verstehe nicht was du mit den namen meinst.

was ich wie ändern soll.



Geschrieben von Flobre am 12.06.2005 um 17:03:

 

$PHPDDM_menu

ist in jeder datei gleich und überschreibt sich dadurch gegenseitig



Geschrieben von SANAKE am 12.06.2005 um 18:02:

 

ok
was mus ich tun??



Geschrieben von phlox81 am 12.06.2005 um 20:22:

 

Zitat:
Original von SANAKE
ok
was mus ich tun??


PHP lernen.



Geschrieben von theromi am 12.06.2005 um 22:40:

 

Zitat:
Original von SANAKE
ok
was mus ich tun??

Verstehen. Mehr nicht. Googeln warscheinlich auch. Einfach die Arbeit eines anderen zu kopieren wird wohl nicht ganz ausreichen (denn das du den Quellcode selber geschrieben hast wage ich doch stark zu bezweifeln)...

Zitat:
Ich finde deine Art auch echt dreist und respektlos dem Helfer gegenüber.

Nuff said.

Romi



Geschrieben von SANAKE am 13.06.2005 um 08:09:

 

einen ganzen teil habe ich auch selber geschrieben.

welchen namen muss ich wo ändern.


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH