1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
|
<script type="text/javascript">
function Gallery( element, imagelist ) {
var id = element;
var images = imagelist;
var current = 0;
function show() {
document.getElementById( id ).src = images[ current ];
}
this.next = function() {
if( current++ >= images.length - 1 )
current = images.length - 1;
show();
}
this.prev = function() {
if( current-- <= 0 )
current = 0;
show();
}
this.first = function() {
if( current-- >= 0 )
current = 0;
show();
}
this.last = function() {
if( current++ <= images.length - 1 )
current = images.length - 1;
show();
}
}
bilderliste1 = new Gallery("rahmen1", new Array(<?php echo $bilder; ?>));
</script> |