Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<style>
#link
{ position: relative }
#hover
{ display:none; }
#hover, #unhover
{
position: absolute;
left: 0;
top: 0;
/* evtl. width: ...; height: ... */
}
#link:hover #hover
{ display: block; }
</style>
<a id="link" href="#">
<span id="unhover"><img src="buton.png"></span>
<span id="hover"><img src="button_hover.png"></span>
</a>
<html>
<head>
<title>Homepagetest</title>
<style type="text/css">
body {
background: black url("transBack.png") fixed no-repeat center;
}
#main {
width: 680px;
height: 500px;
position: absolute;
margin-top: -250px;
margin-left: -340px;
top: 50%;
left: 50%;
opacity: 0.8;
}
#header {
width: 680px;
height: 70px;
margin-top: -10px;
margin-bottom: 15px;
}
#menu {
width: 150px;
height: 420px;
margin-top: 5px;
margin-right: 5px;
float: left;
}
#anzeige {
width: 520px;
height: 420px;
margin-top: 5px;
margin-left: 5px;
float: left;
}
.buttons {
width: 150px;
height: 50px;
margin-bottom: 2px;
}
#test:hover {
width: 0;
height: 0;
}
#point1 {
background: url("home.png") no-repeat;
}
#point1:hover {
background: url("homeGlow.png") no-repeat;
}
#point2 {
background: url("uebermich.png") no-repeat;
}
#point2:hover {
background: url("uebermichGlow.png") no-repeat;
}
#point3 {
background: url("bilder.png") no-repeat;
}
#point3:hover {
background: url("bilderGlow.png") no-repeat;
}
#point4 {
background: url("downloads.png") no-repeat;
}
#point4:hover {
background: url("downloadsGlow.png") no-repeat;
}
#point5 {
background: url("chat.png") no-repeat;
}
#point5:hover {
background: url("chatGlow.png") no-repeat;
}
#point6 {
background: url("gaestebuch.png") no-repeat;
}
#point6:hover {
background: url("gaestebuchGlow.png") no-repeat;
}
#point7 {
background: url("links.png") no-repeat;
}
#point7:hover {
background: url("linksGlow.png") no-repeat;
}
#point8 {
background: url("impressum.png") no-repeat;
}
#point8:hover {
background: url("impressumGlow.png") no-repeat;
}
</style>
</head>
<body>
<div id="main">
<div id="header">
<img src="headline.png" width="680" height="90" />
</div>
<div id="menu">
<div class="buttons "id="point1"></div>
<div class="buttons "id="point2"></div>
<div class="buttons "id="point3"></div>
<div class="buttons "id="point4"></div>
<div class="buttons "id="point5"></div>
<div class="buttons "id="point6"></div>
<div class="buttons "id="point7"></div>
<div class="buttons "id="point8"></div>
</div>
<div id="anzeige">
<img src="anzeige.png" width="520" height="420" />
</div>
</div>
</body>
</html>
Dieses Problem ist mir noch nie untergekommen. Und weiß daher auch nicht, wieso die dann so "flashen". :|Wenn ich display und visibility verwende, dann flashen (tauchen auf und verschwinden) die bilder komischerweise pausenlos, wenn ich hover verwende
Weil spans inline-Elemente sind, und sich an dessen (in diesem Fall leerem) Inhalt anpassenWeiterhin würde mich interessieren, warum, wenn ich statt den 8 divs spans benutze, die bilder gar nicht erst angezeigt werden.