donman2006
Programmer
Hi,
I change the image when person put the mouse on the image. How can I permanently change the image, when someone click on it and go to the next page?
<a href='#' onclick="changeText(1)"><img src="images/b1.jpg" name="Image1" width="84" height="34" border="0" id="Image1" onMouseOver="MM_swapImage('Image1','','images/b1_on.gif',1)" onMouseOut="MM_swapImgRestore()"></a>
<a href='#' onclick="changeText(2)"><img onMouseOver="MM_swapImage('Image2','','images/b2_on.gif',1)" onMouseOut="MM_swapImgRestore()" src="images/b2.jpg" name="Image2" width="101" height="34" border="0" id="Image2"></a>
<script language="JavaScript" type="text/JavaScript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
I change the image when person put the mouse on the image. How can I permanently change the image, when someone click on it and go to the next page?
<a href='#' onclick="changeText(1)"><img src="images/b1.jpg" name="Image1" width="84" height="34" border="0" id="Image1" onMouseOver="MM_swapImage('Image1','','images/b1_on.gif',1)" onMouseOut="MM_swapImgRestore()"></a>
<a href='#' onclick="changeText(2)"><img onMouseOver="MM_swapImage('Image2','','images/b2_on.gif',1)" onMouseOut="MM_swapImgRestore()" src="images/b2.jpg" name="Image2" width="101" height="34" border="0" id="Image2"></a>
<script language="JavaScript" type="text/JavaScript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>