If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I went down a different route and have got it working.
I changed the text in div.box2 using:
document.getElementsByClassName("box2").innerHTML = "Style name"; (The alt tag in all four links is the same text)

But out of curiosity it would be interesting to know what the solution would have been?