470,644 Members | 1,202 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,644 developers. It's quick & easy.

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

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.
Jul 19 '05 #1
0 1304

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Christian Kusenbach | last post: by
1 post views Thread by Spike | last post: by
8 posts views Thread by miladhatam | last post: by
5 posts views Thread by cssExp | last post: by
1 post views Thread by rockdale | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.