$.getRandomImgSrc = function() {
var _size = Math.random() * 3 + 1,
_width = Math.round((Math.random() * 110 + 100) * _size),
_height = Math.round(140 * _size),
_random = Math.ceil(Math.random() * 1000),
_src = 'http://lorempixel.com/' + _width + '/' + _height + '/' + '?cacheBuster=' + _random;
return _src;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.