diedVIPs

html knowhow

Bilder wechseln










Bilder wechseln

So sieht´s aus



Quellcode
<html>
<head>
<script type="text/javascript">
var images = new Array(
'../Bilder/Werbung/B-HKH.jpg',
'../Bilder/Werbung/B-MSGS.jpg',
'../Bilder/Werbung/B-Ovoice.jpg',
'../Bilder/Werbung/B-HBart.jpg'
);
var current_index = 0;
function switch_image(direction) {
var count = images.length;
current_index += (direction ? 1 : -1);
if (current_index == count) {
current_index = 0;
} else if (current_index < 0) {
current_index = count - 1;
}
document.getElementById('image_switch').src = images[current_index];
}
</script>

<style type="text/css">Hier nichts</style>
</head>

<body >
<div style="text-align:center">
<img src="../Bilder/Werbung/B-HKH.jpg" id="image_switch" alt="" /><br /><br />
<button id="close" class="closing" onclick="switch_image(0)" ><img src="../Bilder/Pfeil.png" /></button>
</div>
</body>

</html>






Kontakt    Datenschutz   Impressum