I have made the html+javascript code.According to which when the page loaded the image size gets reduced to 50,50 and onclicking on it ,size increases to 500,500,but i done it with the one copy of image
But i want the click at thumnail of photos and display the full resolution of thumnail.
Please somebody help ,thanks in advance.
But i want the click at thumnail of photos and display the full resolution of thumnail.
Code:
<html>
<body>
<body onload="changeIt();">
<head>
<script langauge="javascript">
var count=1;
function changeIt()
{
var width=50;
var height=50;
document.TheImage.width=width
document.TheImage.height=height
}
function changeeIt()
{
if(count==1)
{
var width=500
var height=500
document.TheImage.width=width
document.TheImage.height=height
count=2;
}
else if(count==2)
{
var amrit1=50
var pal=50
document.TheImage.width=amrit1
document.TheImage.height=pal
count=1;
}
}
</script>
</head>
<img src="/home/administrator/Desktop/aa" name="TheImage" onclick="changeeIt();">
<BR>
</body>
</html>
Please somebody help ,thanks in advance.
Comment