# New to Javascript -- Question Regarding Lightbox JS & Random Image Loading

**URL:** <https://forum.kirupa.com/t/new-to-javascript-question-regarding-lightbox-js-random-image-loading/197870>\
**Category:** web dev\
**Created:** [August 20, 2006, 2:34am UTC](https://forum.kirupa.com/t/new-to-javascript-question-regarding-lightbox-js-random-image-loading/197870 "2006-08-20T02:34:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![decisionman](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/decisionman/32/1673_2.png) [@decisionman](https://forum.kirupa.com/u/decisionman)\
**Post date:** [August 20, 2006, 2:34am UTC](https://forum.kirupa.com/t/new-to-javascript-question-regarding-lightbox-js-random-image-loading/197870/1 "2006-08-20T02:34:06Z")

</div>

Hello all,

I’m doing a small temporary portfolio site, and I’m using the Lightbox JS 2.0 to make it just a little more … sexy.

Anyway, the print section is linear, but I wanted a random section where I could use the following Lightbox code but have it pull a random image from a particular folder & or location:

> \<a href=“images/image-1.jpg” rel=“lightbox”\>image #1\</a\>

[FONT=Verdana]Can this be done? Or am I barking up the wrong tree? [/FONT]

[FONT=Verdana]Thanks!  
Mark(decisionman)

😛 [/FONT]
