When the bellow function is called in this page, which is when one of the smaller user images is clicked, the page jumps to the top. The script is realy simple, I dont know what is going on…
[url]http://wisetopic.com/wisematch/profile/?userid=57#
[CODE] <script type=”text/javascript”>
function changeImg(imageSrc) {
pic = document.getElementById(‘mainImg’);
pic.src = ‘http://wisetopic.com/shared/WiseImage.ashx?Image=’+imageSrc+’&width=200’;
return true;
}
</script>
The fucntion is called like this:
<a href=”#”>
[CODE]
<img class=”thumb” src=”http://wisetopic.com/shared/WiseImage.ashx?Image=wm_57633121113188986678.jpg&width=50&cropWidth=50″
onclick=”changeImg(‘wm_57633121113188986678.jpg’)” alt=”” /></a>
Thanks.