| Das
folgende Script fixiert eine Hintergrundgrafik. Zunächst
muss natürlich erst einmal eine Hintergrundgrafik
erstellt werden. Diese Grafik speichern wir nun als
hintergrund.gif ab. Die Hintergrundgrafik sollte im
selben Verzeichnis liegen wie die html Datei.
<html>
<head>
<title>Fester Hintergrund
- Hintergrundbild fixiert</title>
<style type="text/css">
body {
background-image:url(hintergrund.gif); background-repeat:no-repeat;
background-attachment:fixed; padding:0px; }
</style>
</head>
<body>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
<h1>ganz viel Text</h1><br>
</body>
</html>
Das Ergebnis: sehen
Sie hier
|