Hi, I am wandering if anyone can figure out when an image being loaded by php start a variable. Like say I have "bigJPEG.jpg", I want it to have the image download completely before running a variable on the same script. This would be what it would do..
if("bigJPEG.jpg" is loaded) {
echo "The Image is loaded";
}
I have a script wich I cant use javascript so..
Thanks in Advance
When Done Loading Image...
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Since PHP is server-side it has completely finished it's work before the image starts being downloaded to the client (browser). Therefore it is not possible to use PHP to replace JavaScript for functions such as this.
Basically for a client-side operation you need a client-side technology === JavaScript.
Mac
Basically for a client-side operation you need a client-side technology === JavaScript.
Mac