Hallo Zusammen,
ich habe folgendes Problem (mit Scrool menue at WIN).
Im Prinzip funktioniert es einfach nicht, es reagiert bei keinem Klick, es macht also rein gar nichts.
Ich habe es zwar etwas angepasst vom Aussehen her, aber ich denke nicht dass das ein Problem sein dürfte.
Dazu muss ich sagen, dass die Navigation nicht in einer Datei abgelegt ist, die index.php zieht sich den JS-Code, die Style Zeile und das Body Zusatz von einer anderen PHP-Datei (1), dann zieht sich die index.php das Aussehen wiederum von einer anderen PHP-Datei (2), im Prinzip nichts kompliziertes, die index.php hat also im Anschluss dennoch alle notwendigen Scripte etc. zur Verfügung.
Folgendes steht in der PHP-Datei (1)
| PHP-Quelltext | 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:
|
<?
<script language="JavaScript">
var mpos=new Array();
var mdir=new Array();
var maxmenus=6; // Hier die Anzahl der Hauptlinks
var delay=1; // Hier Submenue Geschwindigkeit
function do_menu(menu)
{
for(i=0; i<maxmenus; i++)
{
if(menu!=i && mpos[i]>0) // Hier die Position des Submenue kann auch - sein
{
mdir[i]=-4;
if(mpos[i]>=30)
move_menu(i);
}
}
mdir[menu]=-mdir[menu];
if(mpos[menu]<=0 || mpos[menu]>=30) // Hier die Position des Submenue kann auch - sein
move_menu(menu);
}
function move_menu(menu)
{
mpos[menu]+=mdir[menu];
if(document.layers)
document.layers["menu"+menu].left=mpos[menu];
else
document.all["menu"+menu].style.left=mpos[menu];
if(mpos[menu]>0 && mpos[menu]<100) // Hier die Position des Submenue kann auch - sein
setTimeout("move_menu("+menu+")", delay);
}
function init()
{
for(i=0; i<maxmenus; i++)
{
mpos[i]=0; // Hier die Position des Submenue kann auch - sein
mdir[i]=-4;
}
}
</script>
<script language="JavaScript" type="text/javascript">
<!--
function pulldown(form)
{
var mypull = form.dest.selectedIndex;
self.location.href = form.dest.options[mypull].value;
}
//-->
</script>
<style>
.menu{position:absolute;z-index:1;padding:5;border-width:1;border-style:ridge;background-color:#EEEEEE;color:black;}
</style>
<body onload="init()">
?>
|
Dazu muss ich wohl noch sagen, dass dort noch ein anderes Script ausgeführt wird, aber das dürfte ebenfalls keine Rolle spielen - zum deaktivieren des Rechts-Klicks -
Folgendes steht in der PHP-Datei (2)
| PHP-Quelltext | 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:
|
<?
<div class="menu" style="top:200;center:0;z-index:2;width:100;background:#BFBFBF" align="center">
<table width="780">
<tr>
<td align="center" width="780" bgcolor="black"><small><font face="Verdana" color="white"><b>Navigation</b></font></small></td>
</tr>
</table>
<table border="0" width="780">
<tr>
<td align="center" width="130"><a href="index.php"><small><font face="Verdana" color="#000000">Home</font></small></a></td>
<td align="center" width="130"><a href="javascript:do_menu(1)"><small><font face="Verdana" color="#000000">abc</font></small></a></td>
<td align="center" width="130"><a href="javascript:do_menu(2)"><small><font face="Verdana" color="#000000">def</font></small></a></td>
<td align="center" width="130"><a href="javascript:do_menu(3)"><small><font face="Verdana" color="#000000">ghi</font></small></a></td>
<td align="center" width="130"><a href="jkl" target="_blank"><small><font face="Verdana" color="#000000">huz</font></small></a></td>
<td align="center" valign="top" width="130"><a href="javascript:do_menu(5)"><small><font face="Verdana" color="#000000">pol</font></small></a></td>
</tr>
</table>
</div>
<div id="menu1" class="menu" style="top:200;center:130;width:100;background:#BFBFBF" align="center">
<small><font face="Verdana">
aa<br>
bb<br>
cc<br>
dd<br>
ee<br>
ff<br>
gg<br>
hh<br>
ii</font></small>
</div>
<div id="menu2" class="menu" style="top:200;center:260;width:100;background:#BFBFBF" align="center">
<small><font face="Verdana">
jj<br>
kk<br>
ll<br>
mm<br>
nn</font></small>
</div>
<div id="menu3" class="menu" style="top:200;center:390;width:100;background:#BFBFBF" align="center">
<small><font face="Verdana">
oo<br>
pp<br>
qq<br>
rr<br>
ss</font></small>
</div>
<div id="menu5" class="menu" style="top:200;center:650;width:100;background:#BFBFBF" align="center">
<small><font face="Verdana">
tt<br>
uu<br>
vv<br>
ww</font></small>
</div>
?>
|
Diese beiden PHP-Datein werden also in die index.php geladen.
Wenn ich nun auf was auch immer klicke reagiert es nicht, ... kann mir wer helfen ?
MfG
Salamba |