Papaaaa
Messages : 174 Date d'inscription : 12/02/2012
| Sujet: Fond divers résolutions 23/5/2013, 16:01 | |
| Code java pour les différentes résolutions : HIVER 2013 - Code:
-
$(function(){
var bg= "http://i46.tinypic.com/34nh015.png";
if(screen.width < 801) bg="http://i50.tinypic.com/9jpw00.png"; else if(screen.width < 1025) bg="http://i48.tinypic.com/2n0u2hw.png"; else if(screen.width < 1281) bg="http://i49.tinypic.com/o609a9.png"; else if(screen.width < 1601) bg="http://i47.tinypic.com/8xvk2g.png";
document.body.style.backgroundImage="url(\""+bg+"\")";
}); | |
|