Hello!
I have been trying to write a script that changes the title tag of my images. This is because I'm using a script to generate an image gallery, which I linked to a lightbox. I need to put a caption to the images cause well, I think the visitors would like to know what they're looking at :p/ Thing is, I am absolutely clueless now. I have a vague idea though, which is basically to have a text file containing lines with things like,
img1.jpg, This is your caption
and so on
Which I'd access using fopen and fget, split it using explode, loop the lines into an array, match it to $filename using an if statement and change the $title tag accordingly. My previous experience of PHP is from copying and pasting scripts and modifying them. XD
I'd really, really appreciate some help here. Thanks! :p
I have been trying to write a script that changes the title tag of my images. This is because I'm using a script to generate an image gallery, which I linked to a lightbox. I need to put a caption to the images cause well, I think the visitors would like to know what they're looking at :p/ Thing is, I am absolutely clueless now. I have a vague idea though, which is basically to have a text file containing lines with things like,
img1.jpg, This is your caption
and so on
Which I'd access using fopen and fget, split it using explode, loop the lines into an array, match it to $filename using an if statement and change the $title tag accordingly. My previous experience of PHP is from copying and pasting scripts and modifying them. XD
I'd really, really appreciate some help here. Thanks! :p
Comment