First off... FLOATBOX is GREAT! Thanks for the wonderful design and features!
I have a question about using Floatbox with a javascript to display a random image on a webpage... the javascripts I've come accross usually have a link to a html page and I was wondering if it could be used and trigger floatbox from the random thumbnail?
I've been trying to get it to work, but I'm not that great writing javascript and wondered if you would know if it's possible to trigger floatbox from inside the following javascript and how I can go about it.
Thanks!
<script language="JavaScript"><!--
//store the quotations in arrays
images = new Array(4);
images[0] = "<a href = 'http://www.yourdomainhere.com/images/image1.jpg" class="floatbox"'><img
src='http://www.yourdomainhere.com/images/image1t.jpg' alt='Image 1'></a>";
images[1] = "<a href = 'http://www.yourdomainhere.com/images/image2.jpg" class="floatbox"'><img
src='http://www.yourdomainhere.com/images/image2t.jpg' alt='Image 2'></a>";
images[2] = "<a href = 'http://www.yourdomainhere.com/images/image3.jpg" class="floatbox"'><img
src='http://www.yourdomainhere.com/images/image3t.jpg' alt='Image 3'></a>";
images[3] = "<a href = 'http://www.yourdomainhere.com/images/image4.jpg" class="floatbox"'><img
src='http://www.yourdomainhere.com/images/image4t.jpg' alt='Image 4'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
//done
// --></script><br>