![]() |
|
Post Reply ![]() |
Author | |||
Daniel ![]() Admin Group ![]() ![]() Technical Director Joined: 19 Dec 2006 Location: Stoke-on-Trent Points: 881 |
![]() ![]() ![]() ![]() ![]() Posted: 12 Apr 2007 at 12:23pm |
||
If the WhosOn gateway went down for any reason (network connectivity for example) or traffic on port 80 was blocked for some reason, then you don't want the broken link showing.
A small modification to the javascript can fix this so the image is hidden until it has full loaded. Line 80:
We want to change this to enclose it in a easily hideable div, and add a function to the onload portion of the image.
Then we specify the sWOImageLoad function at the bottom of the javascript file:
If the image doesn't load then this function is never called, meaning that the image remains hidden. |
|||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |