Hallo, ich möchte in einer Bilder-Gallerie folgendes erreichen, wenn mit der Maus über das kleine Bild gefahren wird sollen 1 <SPAN>-Ebenen (über gesamte Gallerie) erscheinen.
Mit Javascript ist das weniger das Problem, aber ich würde gerne auf Scripte verzichten, ist das mit CSS möglich?
in dem Beispiel soll sich beim RollOver auf dem 4. Bild die graue Box zeigen.
HTML-Code:
<html>
<head>
<LINK HREF="css.css" REL="stylesheet" TYPE="text/css">
</head>
<body>
<h1>Test-Gallerie</h1>
<span id="gallerie">
<table border="1" width="400px" height="400px">
<tr>
<td width="100px"><img src="01.jpg" width="100px" height="100px" alt=""></td>
<td width="50px"> </td>
<td width="100px"><img src="02.jpg" width="100px" height="100px" alt=""></td>
<td width="50px"> </td>
<td width="100px"><img src="03.jpg" width="100px" height="100px" alt=""></td>
</tr>
<tr><td height="50px" colspan="5"> </td></tr>
<tr>
<!-- Hier ist das 4. Bild //--->
<td><a href="" class="grau"><img src="01.jpg" width="100px" height="100px" alt=""></a></td>
<td> </td>
<td><a href="" id="link2"><img src="02.jpg" width="100px" height="100px" alt=""></a></td>
<td> </td>
<td><a href="" id="link3"><img src="03.jpg" width="100px" height="100px" alt=""></a></td>
</tr>
<tr><td height="50px" colspan="5"> </td></tr>
<tr>
<td><img src="01.jpg" width="100px" height="100px" alt=""></td>
<td> </td>
<td><img src="02.jpg" width="100px" height="100px" alt=""></td>
<td> </td>
<td><img src="03.jpg" width="100px" height="100px" alt=""></td>
</tr>
</table>
</span>
<!-- Dieses Element soll eingeblendet werden //--->
<span class="grau" style="POSITION: absolute; TOP: 80px; LEFT: 20px; WIDTH: 400px; HEIGHT: 420px; VISIBILITY: hidden; BACKGROUND-COLOR: #C0C0C0; Z-INDEX: 2;"> </span>
</body>
</html>
Code:
BODY {
MARGIN: 20 0 0 20;
BACKGROUND-COLOR: #FFFFFF;
FONT-FAMILY: Verdana,Arial;
}
SPAN#gallerie {
Z-INDEX: 1;
}
.grau:hover {
VISIBILITY: visible;
}
IMG {
MARGIN: 0 0 0 0;
BORDER: 0;
}
Habt ihr eine Idee?
EDIT
ich möchte gerne so einen Effekt erzeugen wie hier beim Abmelden,
Gallerie soll von der grau-Box überblendet werden und das eigentliche Bild soll nochmal in einer SPAN-Box darüber erscheinen.