webForumDet fria alternativet

Problem med MAC

0 svar · 141 visningar · startad av Jacob

JacobMedlem sedan dec. 2000503 inlägg
#1

Kan någon förklara varför inte detta script inte fungerar på MAC:

<script language="javascript">
<!--
function menuSelect(nr) {
	if (nr == 0) {
		if (top.main.document.title == "Startsidan") 
			nr = 1;
		else 
			return 0;
	}

	var src = document.all("meny" + nr);
	menuReset();
	src.active = 1;
	document.all("meny" + nr + "bg").style.background = "URL('meny.gif')"
	src.style.color = "white";
}
function menuReset() {
	for (var i=1; i<10; i++) {
		document.all("meny" + i + "bg").style.background = "";
		document.all("meny" + i).active = "0";
		document.all("meny" + i).style.color = "#c0c0c0";
	}
}
function menuOver() {
	var src = event.toElement;
	if (src.className == "lank") {
		if (src.active != "1") document.all(src.id).style.color = "#EF9429";
	}
}
function menuOut() {
	var src = event.fromElement;
	if (src.className == "lank") {
		if (src.active != "1") document.all(src.id).style.color = "#c0c0c0";
	}
}
function menuClick() {
	var src = event.srcElement;
	if (src.className == "lank") {
		src.blur();
		menuReset();
		src.active = 1;
		document.all(src.id + "bg").style.background = "URL('meny.gif')"
		document.all(src.id).style.color = "white";
	}
}
document.onmouseover = menuOver;
document.onmouseout = menuOut;
document.onclick = menuClick;
//-->
</script>

------------------
ja©ob

Genererad på 372 ms · cache AV · v20260730165559-full.f96bc7eb