I have been trying to figure this out. The image path and href are php variables.
echo'<a href="'. $bigImg[0]->src .'"><img src="'. $thumbImg[0]->src .'" alt="" /></a>';
echo'<a href="'. $bigImg[1]->src .'"><img src="'. $thumbImg[1]->src .'" alt="" /></a>';
I am trying to turn the php variables into a javascript.
The PHP variables are:
'. $bigImg[0]->src .'
'. $thumbImg[0]->src .'
How can I pass this into javascript?