Hi,
I have an image crossfader running on a website at present ([url]www.seriousaboutsport.co.uk
[FONT=”Courier New”]<div id=”cf_wrapper”>
<div class=”cf_element” id=”cf1″><img src=”sideimage_football01.jpg” width=”190″ height=”460″ alt=”Football Image” /></div>
<div class=”cf_element” id=”cf2″><img src=”sideimage_rugby01.jpg” width=”190″ height=”460″ alt=”Rugby Image” /></div>
<div class=”cf_element” id=”cf3″><img src=”sideimage_tennis01.jpg” width=”190″ height=”460″ alt=”Tennis Image” /></div>
<div class=”cf_element” id=”cf4″><img src=”sideimage_cricket01.jpg” width=”190″ height=”460″ alt=”Cricket Image” /></div>
</div>
<img src=”spacer.gif” width=”190″ height=”470″ alt=”” />
<script type=”text/javascript”>
var cf = new Crossfader( new Array(‘cf1′,’cf2′,’cf3′,’cf4’), 2000, 4000 );
</script>[/FONT]
As you will no doubt see the final script identifies which images to use (cf1,2,3 etc. What I am looking to do is to randomise this array so that each time the page is refreshed the array ‘cf1′,’cf2′,’cf3’ etc is in a different order.
The problem that I ma having is that of creating this random array that includes “‘s” and inputting it into a current javascript tag (i.e. nesting <script type=”text/javascript”> within <script type=”text/javascript”>).
Any help much appreciated.
Chris