I'm using a background gallery plugin (http://buildinternet.com/project/supersized/) in my project, but when I was attaching it to my wordpress website, I've found a problem that I'm not able to deal with. The gallery calls images by javascript. The function is something like that:
<script type="text/javascript">
jQuery(function($){
$.supersized({
slides : [
{image : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/kazvan-1.jpg'},
{image : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/kazvan-2.jpg'},
{image : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/kazvan-3.jpg'}
]
});
});
</script>
The problem is that the images I need to display are taken from wordpress DataBase. And within a javascript I have no idea of how it works. Is there any way of making a php call? The php foreach request I used without the gallery plugin to call the images is this:
<?php foreach ( $images as $image ) : ?>
<img src="<?php echo $image->thumbnailURL ?>" />
<?php if ( $image->hidden ) continue; ?>
<?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
<?php } ?>
<?php endforeach; ?>
Thanks for any help.