hi, i've got a one-line script that i'm using to change the 'src' of an image:
function enlargePhoto(the_photo) {
document.getElementById("large_photo").setAttribute("src","photos/" + the_photo + ".jpg");
}
i'm using the following bit of HTML to call the script:
<a href="javascript:;"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.