Holder renders image
Placeholders can have custom colors, fonts, resizing behavior, and rendering engine.
DEMOfunction charsRandom(len, chars) { chars = chars || "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; len = len || 1; var cr = [], L = chars.length; while (len--) cr[cr.length] = chars.charAt(Math.floor(Math.random() * L)); return cr.join(''); // or return the array cr } function getHolder() { //alert("holder.js/300x200/random/text:" + charsRandom()); return "holder.js/75x75/random/text:" + charsRandom(); } $('img').attr({ "data-src": getHolder() })
Holder renders image
Reviewed by Bhaumik Patel
on
10:44 PM
Rating: