Menu
I was wondering if there is a way to use ‘this’ to reference an image instead of ‘getElementById’. So I dont have to give every image an id?
this is what i have…
[code]
function swapThumb(id, source){
document.getElementById(id).src=source;
}
this is what i would like to work
[code]
function swapThumb(source){
document.this.src=source;
}
?
Greg