wind0965
01-20-2004, 10:30 AM
The code is:
<script language=javascript type="text/javascript">
<!--
var countimg = 0;
function reloadImage()
{
var da = new Date();
if (document.imglive)
document.imglive.src = "/rec/img.cgi?" + countimg + "+out.jpg";
countimg ++;
delete da;
}
function reloadAfter()
{
window.setTimeout("reloadImage()", 1900);
}
function reloadCounter()
{
var da = new Date();
if (document.imgcounter)
document.imgcounter.src = "/rec/imgcnt_xxxxxxxx.cgi?" + countimg + "+out.bmp";
countimg ++;
delete da;
}
function reloadCounterAfter()
{
window.setTimeout("reloadCounter()", 1600);
}
function isLoaded() {
reloadImage();
reloadCounter();
}
// -->
</script>
What does "/rec/img.cgi?" + countimg + "+out.jpg" mean?
1. Why there is a "?" after .cgi?
2. What does the "+" mean?
3. Are the counting and "+out.jpg" parameters or something else?
I am not familiar with CGI, hope you may help me.
Thank you in advance!
<script language=javascript type="text/javascript">
<!--
var countimg = 0;
function reloadImage()
{
var da = new Date();
if (document.imglive)
document.imglive.src = "/rec/img.cgi?" + countimg + "+out.jpg";
countimg ++;
delete da;
}
function reloadAfter()
{
window.setTimeout("reloadImage()", 1900);
}
function reloadCounter()
{
var da = new Date();
if (document.imgcounter)
document.imgcounter.src = "/rec/imgcnt_xxxxxxxx.cgi?" + countimg + "+out.bmp";
countimg ++;
delete da;
}
function reloadCounterAfter()
{
window.setTimeout("reloadCounter()", 1600);
}
function isLoaded() {
reloadImage();
reloadCounter();
}
// -->
</script>
What does "/rec/img.cgi?" + countimg + "+out.jpg" mean?
1. Why there is a "?" after .cgi?
2. What does the "+" mean?
3. Are the counting and "+out.jpg" parameters or something else?
I am not familiar with CGI, hope you may help me.
Thank you in advance!