Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="author" content="Maik" />
<meta name="date" content="2010-01-21" />
<title>tutorials.de</title>
<script type="text/javascript">
/* <![CDATA[ */
var maincat = new Array();
maincat[0] = 'cat1';
maincat[1] = 'cat2';
maincat[2] = 'cat3';
maincat[3] = 'cat4';
function show(divid)
{
if(document.getElementById(divid).style.display=="none")
{
for(i=0;i<maincat.length;i++)
{
document.getElementById(maincat[i]).style.display="none";
}
document.getElementById(divid).style.display="inline";
}
else
{
document.getElementById(divid).style.display="none";
}
}
/* ]]> */
</script>
<style type="text/css">
/* <![CDATA[ */
* {
margin:0;
padding:0;
}
ul {
list-style:none;
}
ul a {
display:block;
width:100%;
}
/* ]]> */
</style>
</head>
<body>
<ul>
<li>
<a href="#" onclick="show('cat1')">Link 1</a>
<div id="cat1" style="display:none">Content 1</div>
</li>
<li>
<a href="#" onclick="show('cat2')">Link 2</a>
<div id="cat2" style="display:none">Content 2</div>
</li>
<li>
<a href="#" onclick="show('cat3')">Link 3</a>
<div id="cat3" style="display:none">Content 3</div>
</li>
<li>
<a href="#" onclick="show('cat4')">Link 4</a>
<div id="cat4" style="display:none">Content 4</div>
</li>
</ul>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="author" content="Maik" />
<meta name="date" content="2010-01-21" />
<title>tutorials.de</title>
<script type="text/javascript">
/* <![CDATA[ */
var maincat = new Array();
maincat[0] = 'cat1';
maincat[1] = 'cat2';
maincat[2] = 'cat3';
maincat[3] = 'cat4';
function show(divid)
{
if(document.getElementById(divid).style.display=="none")
{
for(i=0;i<maincat.length;i++)
{
document.getElementById(maincat[i]).style.display="none";
}
document.getElementById(divid).style.display="inline";
}
else
{
document.getElementById(divid).style.display="none";
}
}
function aktivieren(strHref)
{
if(document.getElementById)
{
for(i=0;i<document.links.length;++i)
{
if(String(document.links[i].className).match(/^(nav|clicked)$/))
{
document.links[i].className=(document.links[i].href==strHref)?'clicked':'nav';
}
}
}
}
/* ]]> */
</script>
<style type="text/css">
/* <![CDATA[ */
* {
margin:0;
padding:0;
}
ul {
list-style:none;
}
ul a {
display:block;
width:100%;
}
a.nav {
color:#000;
background:#f2f2f2;
}
a.nav:hover, a.clicked {
color:#f2f2f2;
background:#000;
}
/* ]]> */
</style>
</head>
<body>
<ul>
<li>
<a href="#link1" class="nav" onclick="show('cat1');aktivieren(this.href)">Link 1</a>
<div id="cat1" style="display:none">Content 1</div>
</li>
<li>
<a href="#link2" class="nav" onclick="show('cat2');aktivieren(this.href)">Link 2</a>
<div id="cat2" style="display:none">Content 2</div>
</li>
<li>
<a href="#link3" class="nav" onclick="show('cat3');aktivieren(this.href)">Link 3</a>
<div id="cat3" style="display:none">Content 3</div>
</li>
<li>
<a href="#link4" class="nav" onclick="show('cat4');aktivieren(this.href)">Link 4</a>
<div id="cat4" style="display:none">Content 4</div>
</li>
</ul>
</body>
</html>