Here is my Javascript at the top in the head.
<script type="text/javascript" charset="utf-8">
var myGallery=new Array();
myGallery[0]="../images/gallery2/2009_09_04-BretErnst_0013.jpg";
</script>
Now I want to be able to call myGallery[0] and use that as a href.
So I try:
<li>
<a href="myGallery[0]" rel="prettyPhoto[gallery1]" title="You can add caption to pictures. You can add caption to pictures. You can add caption to pictures.">
<img src="myGallery[0]" width="60" height="60" alt="Red round shape" />
</a>
</li>
But the variable is not being replaced with the string...
Help?
document.getElementById('myGallery[0]').href = myGallery[0];