Programmation HTML
Créer une page qui lorsqu'on va l'accéder on sera dirigé automatiquement sur un autre page
Dans le tag <head> de la page que tu ne veux plus que les gens accèdent, tu vas mettre ceci :
<meta http-equiv="refresh" content="0; URL=nouvellepage.html">
1. Dans l’attribut « content » le chiffre en premier correspond au nombre de secondes que tu veux laisser la vieille page affichée avant la redirection à la nouvelle page. Si tu mets zéro alors c’est redirigé automatiquement.
2. Tu vois « URL= » suivi du nom de la nouvelle page. Si la nouvelle page est dans le même répertoire web que l’ancienne alors tu peux seulement mettre le nom de la page sinon tu mets une adresse indirect tel
../../test.htm remonte deux répertoires et affiche test.htm ainsi en partant de mwlandry.ca/001/002/redirige.htm tu remonteras à mwlandry.ca/test.htm
Exemple :
<html>
<head>
<title>Untitled Page</title>
<meta http-equiv="refresh" content="0; URL=nouvellepage.html">
</head>
<body>
<form id="form1">
<div>Page Web 1</div>
</form>
</body>
</html>
Associer une icone à une page web.
Référence.
Once you have an icon file with your logo, you're ready to take the final step. Following methods will work in Explorer 5.x and higher without having any negative effects on other browsers. Method 1 This is the easiest method to implement and it will work regardless of the particular page on your site users choose to add to their favorites list. Don't worry if you don't have access to your web site root; take a look at the next method. If you have access to the root of your web site, simply save your icon file as "favicon.ico" there. For example, if your web site is "www.chami.com", your icon file should be available at "www.chami.com/favicon.ico". The web browser will look for favicon.ico whenever your site is added to the favorites list and if it is found at the root of your web site, the icon will appear next to the link to your site. Method 2 If you don't have access to the root of your web site, you have to add the following tag to your web page so that the browser will know where to look for your icon. Unlike before, this time you can save the icon under any name ending with ".ico" We'll use the name "logo.ico" and assume that your web site is under the directory "~your_directory".
<LINK REL="SHORTCUT ICON"
|
J'ai placé favicon.ico
![]() |
J'ai
placé un autre icone, faviconfleur1.ico
<LINK
REL="SHORTCUT ICON"
Dans des fichiers .php comme sur mon site TNG de généalogie.
Pour avoir une icone différente pour la généalogie
|
J'ai
placé une autre icone, faviconFamille1.ico
<LINK
REL="SHORTCUT ICON"
PS. Il faut écrire ../faviconFamille1.ico avec les 2 points car l'adresse absolue mwlandry.ca/faviconFamille1.ico ne fonctionne pas. |
ATTENTION: Le résultat n'est pas instantané. Il est préférable de vider la cache de Internet Explorer pour voir un résultat plus rapidement. |
Merci Luc
JAlbum et Google Analytics
Pour savoir combien de personnes vont voir mes pages.
Pour le fonctionnement de Google Analytics créer un compte chez Google,
google.com, et suivez les instructions pour le service gratuit de Google
Analytics.
Placé le texte HTML ci-bas
juste avant le dernier </body>. Attention ce texte est
codé et particulier à des pages sur
le site mwlandry.ca. On doit avoir un autre code pour
un autre une autre adresse Internet
<Texte placé pour Google>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2911152-1";
urchinTracker();
</script>
Placé juste avant le dernier </body>. Attention ce texte est particulier à des
pages sur le site mwlandry.ca
Dans PositionMap placer à la fin de indexWithGoogleMap.inc
Dans Turtle placer dans index.htt
Dans NospOfTombl dans index.htt et slide.htt.
Au besoin Cliques ici pour m'envoyer un courriel.
Dernière modification : 28 juin 2019.