How i can put a message?

[SIZE=1]How i can put a message for each preview image ???

for example…

(dir of the images)
galleryDir=“images”;

(Load the images)
phpArray = new Array(“j1.JPG”,“j2.JPG”,“j3.JPG”,“j4.JPG”,“j5.JPG”,“j6.JPG”,“j7.JPG”,“j8.JPG”,“j9.JPG”,“j10.JPG”,“j11.JPG”,“j12.JPG”);

(load the txt)
phpArraytxt=new Array(“hi1”,“hi2”,[/SIZE][SIZE=1]“hi3”,“hi4”,[/SIZE][SIZE=1]“hi5”,“hi6”,[/SIZE][SIZE=1]“hi7”,“hi8”,[/SIZE][SIZE=1]“hi9”,“hi10”,[/SIZE][SIZE=1]“hi11”,“hi12”[/SIZE][SIZE=1]);

for(i=0;i<phpArray.length;i++)
phpArrayTxt*= ? ;

“i” is the var of the each image… but i dont know how put it text…

Some Help ???
[/SIZE]