Salut
Ce pb je l' ai eu quand je voulais choisir une img de fond pour un site
j' ai donc créé cette petite fonction:
function fond()
{
if (screen.width == 800,screen.height == 600)
{
corps.background = "F/images/fond1.jpg";
}
else
{
corps.background = "F/images/fond1_1024.jpg";
}
}
C' est donc la fonction screen.width (largeur de fenêtre)
ou .height si tu veux la hauteur
J' espère que cela répond à ton pb
a+
Raph
