xam
06-27-2006, 03:14 PM
Hello,
I use below code to refresh my image verification codes, when an user click on the refresh button, javascript code will be refresh image code.. but I need to tweak that my code..
<script type="text/javascript">
function reload() {
var now=new Date();
var a=document.getElementById('reload');
a.src='img.php?'+now.getTime();
}
</script>
I want to change below line:
a.src='img.php?'+now.getTime();
with:
img.php?+now.getTime(); + size=6
It means when an user click on the refresh button it should be call img.php?size=6 URL..
Regards.
I use below code to refresh my image verification codes, when an user click on the refresh button, javascript code will be refresh image code.. but I need to tweak that my code..
<script type="text/javascript">
function reload() {
var now=new Date();
var a=document.getElementById('reload');
a.src='img.php?'+now.getTime();
}
</script>
I want to change below line:
a.src='img.php?'+now.getTime();
with:
img.php?+now.getTime(); + size=6
It means when an user click on the refresh button it should be call img.php?size=6 URL..
Regards.