Hallo!
Ich hab leider kaum Ahnung von JavaScript, möchte aber dennoch auf meiner HP zwei Scripte paralell einsetzen. Alleine für sich funktioniert sowohl das PopUp- als auch das Menü-Script. Zusammen jedoch nicht.
Menü:-----------------------------------------------------------
var height = 400;
var vwidth = 150;
var speed = 0;
var step =10;
var hheight = 20; // heigth of a header item
var iheight = 15; // heigth of a item
var bgc = „lightyellow“ // background color of the item
var tc = „black“ // text color of the item
var textdec = „none“;
var over_bgc = „black“;
var over_tc = „white“;
var over_textdec = „none“; // underline
var open = -1;
var N = (document.all) ? 0 : 1;
var Link_count = 0;
var ntop = 0;
var items = false
var z = 0;
var hnr = 1;
var timerID = null;
var link_array = new Array();
function write_menu()
{
document.write(" ");
cl =0;
for(i=0;i");items = false;}
document.write(" „+la[1]+“ „);
link_array[cl] = new Array(„up“,0,hnr);
cl++;hnr++;
ntop += hheight-1;
z++;
}
else
{
cheight = height - ntop + 1;
if (items == false) {document.write(“ „);
z++;
link_array[cl] = new Array(„up“,0,“");
cl++;
}
document.write(" „+la[1]+“ „);
items = true;
}
}
document.write(“ „);
if (items == true) {document.write(“ ");}
}
function color(obj)
{
document.getElementById(obj).style.backgroundColor = over_bgc;
document.getElementById(obj).style.color = over_tc
document.getElementById(obj).style.textDecoration = over_textdec;
}
function uncolor(obj)
{
document.getElementById(obj).style.backgroundColor = bgc;
document.getElementById(obj).style.color = tc;
document.getElementById(obj).style.textDecoration = textdec;
}
function move(idnr,hid)
{
if ((idnr != open)&& (timerID == null))
{
if(link_array[idnr][0] == „up“)
{
down = height - (hid * hheight) - ((hnr -(hid+1))* hheight) + 2;
if(N) down+=2;
dmover(idnr+2,down);
}
else
{
up = height - ((hid -1) * hheight) -((hnr - (hid))* hheight) +2;
if(N) up+=2;
umover(idnr,up);
}
open = idnr;
}
}
function dmover(idnr,down)
{
for (i=idnr;i 0)timerID = setTimeout(„dmover(“+idnr+","+down+")",speed);
else
{
for (i=idnr;i 0)timerID = setTimeout(„umover(“+idnr+","+up+")",speed);
else
{
for (i=0;i
