supercosmar
Messages postés5Date d'inscriptionjeudi 6 avril 2006StatutMembreDernière intervention15 novembre 2006
-
14 nov. 2006 à 16:18
MorpionMx
Messages postés3466Date d'inscriptionlundi 16 octobre 2000StatutMembreDernière intervention30 octobre 2008
-
16 nov. 2006 à 09:49
Bonjour, j'ai un pb avec un javascipt, lorsque la résolution de l'écran est en 1280x1024 elle semble ne pas être detecter par le script car la redirection se fait vers "index_1400_1050.html" au lieu de "index_1280_1024.html"
(Voir le script ci dessous):
<SCRIPT LANGUAGE="JavaScript1.2"><!-- debut du script
if (screen.width ==1400 && screen.height ==1050)
window.location=("http://www.site.com/index_1400_1050.html");
else if (screen.width <1400)
window.location=("http://www. site
.com/index_1400_1050.html");
if (screen.width ==1280 && screen.height ==1024)
window.location("http://www. site
.com/index_1280_1024.html");
else if (screen.width <1280)
window.location=("http://www. site
.com/index_1400_1050.html");
if (screen.width ==1152 && screen.height ==864)
window.location=("http://www. site
.com/index_1152_864.html");
else if (screen.width <1152)
window.location=("http://www. site
.com/index_1280_1024.html");
if (screen.width ==1024 && screen.height ==768)
window.location=("http://www. site
.com/index_1024_768.html");
else if (screen.width <1024)
window.location=("http://www. site
.com/index_1152_864.html");
if (screen.width ==800 && screen.height ==600)
window.location=("http://www. site
.com/index_800_600.html");
else if (screen.width <800)
window.location=("http://www. site
.com/index_1024_768.html");
// Fin du script --></SCRIPT>
BunoCS
Messages postés15476Date d'inscriptionlundi 11 juillet 2005StatutModérateurDernière intervention 3 mai 2024103 14 nov. 2006 à 16:34
Je dirais que c'est normal...
SI width==1400 alors aller à index_1400
SINON SI width<1400 alors aller à index_1400
Sachant que 1280<1400...
ça te suffit comme explication?
Buno
----------------------------------------
L'urgent est fait, l'impossible est en cours. Pour les miracles, prévoir un délai...
Le site de mon mariage
cs_bultez
Messages postés13615Date d'inscriptionjeudi 13 février 2003StatutMembreDernière intervention15 octobre 201330 15 nov. 2006 à 12:10
Bonjour,
c'était probablement très urgent...
savoir si c'est corrigé, si ça fonctionne,
remercier ceux qui ont contribué à résoudre... : beaucoup moins !
<hr />
Cordialement Bul [mon Site] [M'écrire]
<hr />
BunoCS
Messages postés15476Date d'inscriptionlundi 11 juillet 2005StatutModérateurDernière intervention 3 mai 2024103 16 nov. 2006 à 09:15
Bultez ne fait pas "son malin" comme tu dis, mais il te rappelle que nous sommes potentiellement 3 à attendre les suites de ton problème. Donc effectivement, ce serais gentil de nous tenir informé de ton évolution. En plus, tu ne seras sûrement pas le seul à avoir le problème. Merci donc de penser aux autres...
Buno
----------------------------------------
L'urgent est fait, l'impossible est en cours. Pour les miracles, prévoir un délai...
Le site de mon mariage