Forum Moderators: phranque
<div id="dg-image-gallery" class="dg-image-gallery">
<div class="dg-image-gallery-image">
<img class="dg-image-gallery-thumb" alt="Images properties for rent in Marbella." src="nuevas/casa_blanca_4_house_pool-2.jpg">
<span class="dg-image-gallery-caption">The house and heated pool</span>
<span class="dg-image-gallery-large-image-path">nuevas/casa_blanca_4_house_pool.jpg</span>
And the javascript in the html page is like this:
<script type="text/javascript">
var gallery = new DG.ImageGallery({
el : 'dg-image-gallery',
autoplay : {
pause : 2
}
});
</script>
<script type="text/javascript">window.addEvent('domready', function() {
$$('html').set('class', 'jsOn');
});
</script>
An alternative content instead of <noscript>:
<p class="alternative">no javascript content/p>
this in the .css file:
.dg-image-gallery {
display: none;
}
.jsOn .dg-image-gallery {
display: block;}
.jsOn .alternative {display:none; }