|
Thank you for the reply.
i put your script in my webpage, but the js isnt modifying the img.src still.
what my problem is i have a .bat file to write a 1 or a 0 in a seperate txt file (server_status.txt) so the server would read online or offline. and what im trying to do with that file is use a simple script to read that file automatically and if ajax reads it as a 1 then it changes the img to a green light icon i have, and if it reads a 0 then it changes it to a red light icon.
i have learned to now put js at the end of the webpage for it to load everything before modifying it, its just im still having a lil trouble. =/
|