# Thumbnail over state

**URL:** <https://forum.kirupa.com/t/thumbnail-over-state/216741>\
**Category:** programming\
**Created:** [February 20, 2007, 7:42am UTC](https://forum.kirupa.com/t/thumbnail-over-state/216741 "2007-02-20T07:42:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anothermethod](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@anothermethod](https://forum.kirupa.com/u/anothermethod)\
**Post date:** [February 20, 2007, 7:42am UTC](https://forum.kirupa.com/t/thumbnail-over-state/216741/1 "2007-02-20T07:42:36Z")

</div>

Hello - I have question regarding thumbnail hovers…

I created a image gallery using PHP & SQL. I have thumbnails that swap out the main image and caption. What I’d like to do next is create a over state for the thumbnail but am a little confused about how I’d apply the javascript in the PHP loop.

Thanks in advanced!

Anothermethod.👽
