Seems like something like
PHP Code:
<?php
$holder[0] = '<a href="javascript:animatedcollapse.show([\'headdiv\'])"><img src="test1.jpg" width="1200" height="200" border="0" style="border-style: none" /></a><a href="javascript:animatedcollapse.show([\'headdiv\'])"><img src="test2.jpg" width="1200" height="200" border="0" style="border-style: none" /></a><a href="javascript:animatedcollapse.show([\'headd\'])"><img src="test3.jpg" width="1200" height="200" border="0" style="border-style: none" /></a>';
$holder[1] = '<a href="javascript:animatedcollapse.show([\'headdiv\'])"><img src="test4.jpg" width="1200" height="200" border="0" style="border-style: none" /></a><a href="javascript:animatedcollapse.show([\'headdiv\'])"><img src="test5.jpg" width="1200" height="200" border="0" style="border-style: none" /></a><a href="javascript:animatedcollapse.show([\'headdiv\'])"><img src="test6.jpg" width="1200" height="200" border="0" style="border-style: none" /></a>';
$holder[2] = '<a href="javascript:animatedcollapse.show([\'headdiv\'])"><img src="test7.jpg" width="1200" height="200" border="0" style="border-style: none" /></a><a href="javascript:animatedcollapse.show([\'headdiv\'])"><img src="test8.jpg" width="1200" height="200" border="0" style="border-style: none" /></a><a href="javascript:animatedcollapse.show([\'headdiv\'])"><img src="test9.jpg" width="1200" height="200" border="0" style="border-style: none" /></a>';
shuffle($holder);
echo $holder[0];
?>
could do it. The shuffle randomizes the order of the arrays then the echo outputs the first array which won't be the same because of the shuffle. This is a simplified version, not that good with the js.
Corrections to my coding/thoughts welcome.
Bookmarks