JavaScript Image Rotator with PHP Array of Images
This example demonstrates coordinating the JavaScript Image Rotator with an array of images obtained via PHP. In this case, the array was obtained from a directory listing of images. The array could be obtained from other sources as well.
The first image in this demonstration is selected at random from the array. The rotation can be random or sequential and can be linked, responding with pause and resume onmouseover/mouseout.
Instructions
The documentation contains general information for implementing the code, such as the script tags to be included and initialization of the code. The random rotation example provides more information for display of the first image in the page. The download file provides more guidance in setting up the code.
A very basic function is provided for transporting PHP numerically indexed arrays into JavaScript. We have other more robust solutions available should your data not fit into this scheme.
If you need assistance in coordinating the code with your PHP data, for example, database query results, this can be provided to licensed users for an additional fee. Contact dyn-web for more information.