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

  FORUM HardWare.fr
  Programmation

  optimisation site

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

optimisation site

n°100315
Motchoo
Posté le 14-02-2002 à 13:59:39  profilanswer
 

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+

mood
Publicité
Posté le 14-02-2002 à 13:59:39  profilanswer
 

n°100329
Motchoo
Posté le 14-02-2002 à 14:25:32  profilanswer
 

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

n°100337
kayasax
Posté le 14-02-2002 à 14:33:10  profilanswer
 

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:  




---------------
All we need is a soul revolution
n°100338
Motchoo
Posté le 14-02-2002 à 14:34:18  profilanswer
 

ok je te remercie bien kayasax je vais essayerc a tt de suite !

n°100345
Motchoo
Posté le 14-02-2002 à 14:38:56  profilanswer
 

marche po ..... :( [quote]

n°100356
kayasax
Posté le 14-02-2002 à 14:48:13  profilanswer
 

fais voir ton script


---------------
All we need is a soul revolution
n°100396
gwen2709
Posté le 14-02-2002 à 15:46:23  profilanswer
 

c pas le meme accès sous IE & Netscape...

n°100443
Motchoo
Posté le 14-02-2002 à 17:04:29  profilanswer
 

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>

n°100455
Profil sup​primé
Posté le 14-02-2002 à 17:29:44  answer
 

Solution : faire un site qui s'affiche idéalement peu importe la résolution... ah bah oui, maintenant c un peu tard :/

n°100505
Motchoo
Posté le 14-02-2002 à 18:52:15  profilanswer
 

bah oui merci bien Indiana mais ca me fait un peu chier de tout me retaper maintenant !
vous auriez pas des solutions ! :cry:  :cry:

mood
Publicité
Posté le 14-02-2002 à 18:52:15  profilanswer
 

n°100577
Maxime
Posté le 14-02-2002 à 22:11:49  profilanswer
 

<!--- 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+


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  optimisation site

 

Sujets relatifs
mettre une fleur ICQ sur mon site pour savoir si je suis online ou non[PHP] - Trouver la taille d'une image .gif stockée sur un autre site.
Publier les news de mon site sur d'autre!choix a faire pour un site...
[Web] qui connait de bons sites qui traitent de l'optimisation Web ?comment mesurer la bande passante de mon site
application Java et site Internetsite web et affichage url
site generalisteQui veut m'aider pour un site sur l'optimisation web ?
Plus de sujets relatifs à : optimisation site


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR