hello,
I can't figure out what is wrong whit this script. Can anyone help me please, thanks
-------------------------------------
function changeimage(towhat,url){
if (document.images){
document.images.targetimage.src=towhat.src
gotolink=url
}
}
function warp(){
window.location=gotolink
}
<a href=javascript:warp()><img src=main.jpg name=targetimage></a>
<a href="#" onClick=changeimage('img_one.jpg',this.href)>img one</a>
<a href="#" onClick=changeimage('img_two.jps',this.href)>img two</a>