Ptite_Perle
A les clefs du forum
Je tiens le trousseau de clefs du forum
Fondatrice Messages : 5857 Venue : 27/06/2009 Je suis : Age : 60 Je vie à : Lyon Humeur : Bonne humeur Mes Points : 120037 Script pour différent OS | | Un script qui dirige les internautes vers une page différente, en fonction de son OS (système d'exploitation). Il suffit d'insérer le code ci-dessous dans la section body de la page blanche. Lisez la documentation à l'intérieur de script pour plus de détails sur sa configuration. - Code:
-
<span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left"><SCRIPT> <!-- /* (C)1998 Jonathan Hollingshead.</span> <SCRIPT> <- / * (C) 1998 Hollingshead Jonathan.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">http://members.tripod.com/~the64center/ This copyright must be left unaltered to be used.</span> http://members.tripod.com/ ~ the64center / Ce droit d'auteur doit être laissé inchangé à être utilisé.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">This code loads different pages depending on OS.</span> Ce code charge des pages différentes selon OS.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">To use the code, follow the instructions below.</span> Pour utiliser le code, suivez les instructions ci-dessous.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">First, insert the code into the head of a blank document.</span> En premier lieu, insérer le code dans la tête d'un document vierge.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">(The document will never be seen.) Secondly, make a page for Windows 95 and Other Windows, or one for all.</span> (Le document ne sera jamais vu.) Deuxièmement, faire une page pour Windows 95 et autres Windows, ou un pour tous.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Thirdly, make a page for Macintosh and other OS's.</span> Troisièmement, faire une page pour Macintosh et d'autres OS.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Fourthly, change the win95.html and win31.html to the document you made for Windows or, if you made two, win95.html to the one made for Windows 95, and win31.html to the one made for other Windows.</span> Quatrièmement, le changement de la win95.html et win31.html le document que vous avez fait pour Windows ou, si vous avez fait deux, win95.html à celle faite pour Windows 95, et win31.html à celui réalisé pour les autres Windows.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Fithly, change the mac.html to the document you made for Macintosh.</span> Fithly, changer le mac.html le document que vous avez fait pour Macintosh.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Finally, change other.html to one of the documents above, or make another one for it.</span> Enfin, le changement other.html à l'un des documents ci-dessus, ou en faire un autre pour lui.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">Once you are finished with the instructions, you can delete them.</span> Une fois que vous avez terminé avec les instructions, vous pouvez les supprimer.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">*/ { if((navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('95') != -1)) { window.location.href="win95.html"; } else if(navigator.userAgent.indexOf('Win') != -1) { window.location.href="win31.html"; } else if(navigator.userAgent.indexOf('Mac') != -1) { window.location.href="mac.html"; } else { window.location.href="win.html"; } } //--> </SCRIPT></span> * / {If ((navigator.userAgent.indexOf («WIN»)! = -1) & & (Navigator.userAgent.indexOf (95 ')! = -1)) {Window.location.href = "win95.html ";} else if (navigator.userAgent.indexOf ('Win') = -1!) {window.location.href =" win31.html ";} else if (navigator.userAgent.indexOf ('Mac') =! -1) {window.location.href = "mac.html";} else {window.location.href = "win.html";}} //--> </ SCRIPT></span> |
| |