Hi everyone, Let say, i have a page that output this a several image, how to check weather a certain image already successfully load to user browser? example image: <div><img src='http://www.nasa.gov/images/content/84857main_EC04-0325-23_lg.jpg' width='336' height='280'></div> i need to return a value if the picture finish load. Thanks.
no real way to tell with php being as it is a server side language. though you could use some sory of javascript and onload() event. <img src="image.jpg" onload="do_something(); return false;" />
if that is the case that only javascript can perform this task, the how can i do it .......as onload, run php function? or onload, run SRC php file?