Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3374 connectés 

 


Dernière réponse
Sujet : optimisation site
Maxime <!--- Redirection en fonction de la resolution
var wid=screen.width;
 
if (wid==800) {self.location.href="index800.htm";}
if (wid==1024) {self.location.href="index1024.htm";}
if (wid==1152) {self.location.href="index1152.htm";}
if (wid==1280) {self.location.href="index1280.htm";}
if (wid>1280) {self.location.href="index12802.htm";}
//  --->
 
tous simplement
 
Tu met ce script dans une page differente ( genre index.htm )
 
A+

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
Maxime <!--- Redirection en fonction de la resolution
var wid=screen.width;
 
if (wid==800) {self.location.href="index800.htm";}
if (wid==1024) {self.location.href="index1024.htm";}
if (wid==1152) {self.location.href="index1152.htm";}
if (wid==1280) {self.location.href="index1280.htm";}
if (wid>1280) {self.location.href="index12802.htm";}
//  --->
 
tous simplement
 
Tu met ce script dans une page differente ( genre index.htm )
 
A+
Motchoo bah oui merci bien Indiana mais ca me fait un peu chier de tout me retaper maintenant !
vous auriez pas des solutions ! :cry:  :cry:
Solution : faire un site qui s'affiche idéalement peu importe la résolution... ah bah oui, maintenant c un peu tard :/
Motchoo je voudrais integer ca a ma page d'acceuil qui possede deja une source script. voila mon code :
 
 
<script language="JavaScript1.2">
<!-- Begin
 
 
function high(which2){
theobject=which2;
highlighting=setInterval("highlightit(theobject)
",50);
}
function low(which2){
clearInterval(highlighting);
which2.filters.alpha.opacity=20;
}
 
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5;
else if (window.highlighting)
clearInterval(highlighting);
}
// End -->
</script>
 
</head>
<body>
<a href="Acc.html"><img src="Photos/pagacc86.jpg" border="0" style="filter: alpha(opacity=40); border: inherit; bottom: auto; azimuth: inherit" onMouseover="high(this)" onMouseout="low(this)" align="right" ></a>
 
</body>
</html>
gwen2709 c pas le meme accès sous IE & Netscape...
kayasax fais voir ton script
Motchoo marche po ..... :( [quote]
Motchoo ok je te remercie bien kayasax je vais essayerc a tt de suite !
kayasax tu fais un javascript :
if(window.screen.availWidth == "800" )
{window.location="page800*600.html"}
if(window.screen.availWidth == "1024" )
{window.location="page1024*768.html"}

motchoo a écrit a écrit :

pkoi vous voulez pas m'aider ? :cry:  :cry:  



Motchoo pkoi vous voulez pas m'aider ? :cry:  :cry:
Motchoo bon salut a tous. J'ai un ptit soucis au niveau de mon site internet je l'ai crée en 1024*768 mais je voudrais a la page d'acceuil qu'il redirige le visiteur automatiquement sur la meilleur resolution pour le visiteur(800*600 ou 1024*768) y a t il un script a appliquer ?
aidez moi !!! merci  
 
a+

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)