View Full Version : Change Text

06-01-2006, 02:03 AM
Im new to all of this so pardon my newb question,
I want to create a album, I have a list of small images used as the links, when clicked, a larger image is displayed in another spot on the same page, I got that to work, but I want to be able to place comments under the larger picture from an array. How do I go about placing or changing coments on a page using an <a> link.
Thanks, Ben

06-01-2006, 02:34 AM
<span id="comment"></span>

<a onclick="document.getElementById('comment').innerHTML = 'Some text';">Item One</a>

06-01-2006, 03:02 AM