M
Maik
Dann hast du wohl etwas falsch gemacht, denn grundsätzlich funktioniert das Script im Mozilla Firefox einwandfrei.
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<a href="#" onclick="show('cat1')"><img src="pfad/zur/grafik.jpg"></a>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<html>
<head>
<title>Basic DHTML Menu</title>
<script type="text/javascript">
<!--
function show(divid) {
document.getElementById("cat1").style.display="none";
document.getElementById("cat2").style.display="none";
document.getElementById(divid).style.display="inline";
}
//-->
</script>
<style type="text/css">
<!--
a {
display:block;
}
a img {
border: none;
}
-->
</style>
</head>
<body>
<a href="#" onclick="show('cat1')"><img src="pfad/zur/grafik.jpg"></a>
<div id="cat1" style="display:none">
<a href="#">Sub 1.1</a>
<a href="#">Sub 1.2</a>
<a href="#">Sub 1.3</a>
</div>
<a href="#" onclick="show('cat2')"><img src="pfad/zur/grafik.jpg"></a>
<div id="cat2" style="display:none">
<a href="#">Sub 2.1</a>
<a href="#">Sub 2.2</a>
<a href="#">Sub 2.3</a>
</div>
</body>
</html>