I’ve got a snippet that reads images from a directory and creates an array. I then want to use this array to generate a list to be used with jquery to produce a simple sequence of rolling images. The problem is I can’t get the array values to output on my page.
I can’t run xampp at the moment so I don’t have full access to the code. Here’s roughly how my page looks. I’m working with revolution rc3. I’ve a feeling it’s something to do with the variables not being passed to the [[generateList]] snippet.
[[readImgDir]] <!-- this reads the images from a directory and creates an array, I can echo from here just fine -->
<html>
<head>
<title>Image Fader</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="/examples/jquery.innerfade.js"></script>
</head>
<body>
<ul id="image_rotate" style="list-style: none;">
[[generateList]] <!-- this snippets contains a simple 'echo $image_array;' The image array is created in the first snippet on this page. The problem is here, nothing is outputted -->
</ul>
</body>
</html>
Hopefully that will be enough to go on.
This is code I’m working with
http://www.linein.org/blog/2008/01/10/roate-image-using-jquery-with-plugin/
I will post the full code later on if needed.
Many thanks, sorry it’s a bit vague.