PHP-Code:
<script type="text/javascript">
var mc, sdata = [{image: '01.jpg', url: 'bremsklotzsohlen.html', title: 'Bremsklotzsohlen'},
{image: '02.jpg', url: 'a.html', title: 'a'},
{image: '03.jpg', url: 'a.html', title: 'a'},
{image: '04.jpg', url: 'a.html', title: 'a'},
{image: '05.jpg', url: 'a.html', title: 'a'},
{image: '06.jpg', url: 'a.html', title: 'a'},
{image: '07.jpg', url: 'a.html', title: 'a'},
{image: '08.jpg', url: 'a.html', title: 'a'},
{image: '09.jpg', url: 'a.html', title: 'a'},
{image: '10.jpg', url: 'a.html', title: 'a'},
{image: '11.jpg', url: 'a.html', title: 'a'},
{image: '12.jpg', url: 'a', title: 'a'},
{image: '13.jpg', url: 'a.html', title: 'a'},
{image: '14.jpg', url: 'a.html', title: 'a'},
{image: '15.jpg', url: 'a.html', title: 'a'},
{image: '16.jpg', url: 'a.html', title: 'a'}
};
C.quietDismiss = true;
window.addEvents({
domready: function()
{
// setup the class instance, mc is in global scope due to beforeunload...
mc = new ImageScrOOler(sdata, {
imagePath: "http://www.domain.de/tl_files/slider/",
imageHeight: 75,
targetElement: $("scr"),
clickEvent: function(obj) {
window.location.href = "http://www.domain.de/" + escape(obj.url);
},
showProgress: false
});
} // end domready
});
</script>
Ein div mit ID "scr" ist natürlich auch vorhanden, aber leider tut sich gar nix, nichtmal ein JS Error oder ähnliches...
Lesezeichen