Is there any way that I can change the image on the fly in cgi?

A

Abby

To change images, from what I know, I need to add event handler into
the script (onMouseOver, onMouseOut ... etc), but I need to generate
it on the fly. I will have this javascript in my cgi file which will
be use to run dos program. The step in cgi script will be like below:

/*********************************************************/
Preload 50 images (each image will be name "image1" to "image50")
for ($i=0;$i<50;$i++){
run dos program and get output into array
if (output = ok){
change image$i to ok.jpg;
}
else {
change image$i to fail.jpg;
}
}
/*********************************************************/

Please let me know what to do. Thank you so much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,062
Members
48,769
Latest member
Clifft

Latest Threads

Top