View Single Post
Old 10-10-2012, 03:31 AM   PM User | #4
arfa
New Coder

 
Join Date: Sep 2006
Posts: 51
Thanks: 1
Thanked 0 Times in 0 Posts
arfa is an unknown quantity at this point
@xelawho
I have been banging away at this over an hour now )

And, YES, that is what I am exploring now.
Code:
$captions = file($data_file); // pulled from CSV
<script>
var caption_array = '<?php echo trim($captions[VAL]); ?>';
etc...
Have you any suggestions how I would best pass the array key via the opening thumbnail div?
<div class=change id=tn_THUMBname>thumb(s)</div>

My first thought would be to add the number on the end of the id val and do a substr thing [not sure of js equiv]

Annnnnd, then I presume I would need to do a document.write ?
Would it have to be inside the parent div?

not dumb - just new ;]

thanks
arfa is offline   Reply With Quote