Monday, August 19, 2013

show image after load Example

the sln belongs to : http://forums.techguy.org/web-design-development/1036902-inhibit-display-img-until-100-a.html

this is super simple:
HTML:  <img class="hideMeBeforeLoad" onload="showMeAfterLoad(this)">
CSS:       .hideMeBeforeLoad {    display:none !important; }

JS:          function showMeAfterLoad(img){ $(img).removeClass("hideMeBeforeLoad"); }

No comments:

Post a Comment