ta stran ima vstavljeno sliko in dodano jquery scripto
slika:
<img id="wpfullbg" src="http://bicycletouringpro.com/blog/wp-content/uploads/2012/03/bbg.jpg" style="left: 0px; width: 1903px; height: 955px; z-index: -2; top: 0px; position: fixed; opacity: 0.999999999; ">
scripta:
<script type="text/javascript" language="javascript">
jQuery(function() {
fullbg();
jQuery(window).resize(fullbg);
setTimeout(fullbg, 500);
});
function fullbg() {
var imgw = jQuery('#wpfullbg').width();
var imgh = jQuery('#wpfullbg').height();
var vpw = jQuery(window).width();
var vph = jQuery(window).height();
var imgratio = imgw / imgh;
var viewportratio = vpw / vph;
var w = vpw;
var h = vph;
if( viewportratio > imgratio )
{
// screen is wider than picture -> increase the heigth of the picture;
h = w / imgratio;
}
else
{
w = h * imgratio;
}
jQuery('#wpfullbg').css(
{
'left': '0px',
'width': w,
'height': h,
'z-index': '-2',
'top' : '0px',
'position' : 'fixed',
'opacity' : '0.999999999'
}
);
}
</script>